摘要:
[Required(ErrorMessage = "Last name is required.")]//是否允许为空[Display(Name="Last Name")]//显示名[MaxLength(50)]//最大长度[DisplayFormat(DataFormatString = "{0:d}", ApplyFormatInEditMode = true)]//格式化//可以使FirstMidName属性映射到数据库的列为FirstName[Column("FirstName")]public strin 阅读全文