摘要: Fluent API由命名空间System.ComponentModel.DataAnnotations提供支持。所以在使用之前,需要先引用该dll。这里列出一些常用的Fluent API。(1)通过重写派生 DbContext上的 OnModelCrating方法来访问 Fluent API1... 阅读全文
posted @ 2015-05-08 21:45 lcyan 阅读(161) 评论(0) 推荐(0) 编辑