摘要: Code First 约定 Code First 使开发者可以用一个C#或者VB的类来描述一个model,model的基本特性根据约定进行检测。约定是一组可以根据C#或者VB的类定义生产概念模型的规则。这些约定位于System.Data.Entity.ModelConfiguration.Conventions命名空间下。 开发者也可以用data annotations 或the fluent API来配置生产自己的模型。配置优先权按照fluent API,data annotations ,conventions的顺序。 Code First 的详细信息在API Documentation. 阅读全文
posted @ 2013-05-08 00:00 rovoqo 阅读(287) 评论(0) 推荐(0) 编辑