Visual Studio 2010中的EntityConfiguration和ContextBuilder在哪里? [英] Where is EntityConfiguration and ContextBuilder in Visual Studio 2010?

查看:154
本文介绍了Visual Studio 2010中的EntityConfiguration和ContextBuilder在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到例子

I see examples about code-only POCO for en entity framework 4, but I cannot find the classes EntityConfiguration and ContextBuilder and I cannot see which reference I need to add to have them.

它是.NET Framework 4的一部分,还是我们必须下载其他东西?

Is it part of the .Net Framework 4 or do we have to download something else?

推荐答案

您正在寻找的POCO内容for是在一个单独的下载。当前版本位于 http:/ /www.microsoft.com/downloads/details.aspx?FamilyID=af18e652-9ea7-478b-8b41-8424b94e3f58&displayLang=en

The POCO stuff you're looking for is in a separate download. Current version is at 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实体框架功能CTP3\Binaries目录)。对新的dll进行项目引用,你应该设置!

Once you run the installer, you'll need to grab the Microsoft.Data.Entity.CTP.dll file (mine was in the C:\Program Files\Microsoft ADO.NET Entity Framework Feature CTP3\Binaries directory). Make a project reference to the new dll and you should be set!

这篇关于Visual Studio 2010中的EntityConfiguration和ContextBuilder在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆