摘要: 1.模型建立,在模型上类上添加System.ComponentModel.DataAnnotations验证属性 ~~~C public class Product { public int Id { get; set; } [Required] public string Name { get; 阅读全文
posted @ 2016-04-07 22:34 绥山潇洒哥 阅读(806) 评论(0) 推荐(0) 编辑