1
我有如下一个下拉列表: -组的第一元素的GUID空
@Html.DropDownListFor(model => model.NewPipelineEaPersonId, new SelectList(Model.EaList, "PersonId", "FullName"), "Please select one", new { style = "width: 250px;" })
我有我的类,如下所示: -
public class LeadPipelineEntry
{
[Required]
public int PipelineTransactionId { get; set; }
public Guid NewPipelineEaPersonId { get; set; }
}
的GUID这部分不需要但仍然是抛出必要的字段错误。
而且我不想做出的GUID为空的参数
我知道,选择字段做这些。
但是我可以使第一项“请选择一个”的值为Guid.Empty
?
我想只在视图中管理它。