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