我看到examples关于 en Entity Framework 4 的纯代码 POCO,但我找不到 EntityConfiguration 和 ContextBuilder 类,我看不到我需要添加哪个引用才能拥有它们。
它是 .Net Framework 4 的一部分还是我们必须下载其他东西?
最佳答案
您正在寻找的 POCO 内容位于单独的下载中。当前版本位于 http://www.microsoft.com/downloads/details.aspx?FamilyID=af18e652-9ea7-478b-8b41-8424b94e3f58&displayLang=en
运行安装程序后,您需要获取 Microsoft.Data.Entity.CTP.dll 文件(我的位于 C:\Program Files\Microsoft ADO.NET Entity Framework Feature CTP3\Binaries 目录中)。对新的 dll 进行项目引用,您应该已经设置好了!
关于entity-framework - Visual Studio 2010 中的 EntityConfiguration 和 ContextBuilder 在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2337057/