日期:2014-05-20 浏览次数:20860 次
[MetadataType(typeof(LogOnModelMetadata))] public partial class LogOnModel { class LogOnModelMetadata { [Required] [Display(Name = "User name")] public string UserName { get; set; } [Required] [DataType(DataType.Password)] [Display(Name = "Password")] public string Password { get; set; } [Display(Name = "Remember me?")] public bool RememberMe { get; set; } } }