【发布时间】:2011-06-17 19:35:15
【问题描述】:
我以实体框架代码优先约定的风格定义了一组类,并使用 System.ComponentModel.DataAnnotations 属性注释了类属性。
现在我想从这段代码生成一个 SQL Server Compact Edition (SCSE) (4.0) 数据库。
执行此操作需要哪些代码以及需要导入哪些程序集?
到目前为止,我已经导入了 C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v4.0\Desktop{System.Data.SqlServerCe.dll,System.Data.SqlServerCe.Entity\System.Data .SqlServerCe.Entity.dll} dll 文件。
任何指针表示赞赏。文章等等。
【问题讨论】:
标签: .net entity-framework sql-server-ce code-first ef-code-first