摘要: 出自http://www.cnblogs.com/9988/archive/2012/04/25/2469838.html看了网上的一些介绍,还是这篇将的好在Entity Framworik(Module)中有两种配置:一种 DataAnnotaions(注释)与Fluent API.这些根据个人喜欢来使用,DataAnnotaions 配置相对简单些,Fluent API可以配置些复杂的功能。今天我们来简单说说DAtaAnnotaions 的属性--命名空间:System.ComponentModel.DataAnnotations四个属性:属性名称描述Required标识该属性为必需参数, 阅读全文
posted @ 2013-01-25 14:27 曉軒 阅读(753) 评论(0) 推荐(0) 编辑