我可以将 Entity Framework 6 与 Visual Studio 2010 一起使用吗? [英] Can I use Entity Framework 6 with Visual Studio 2010?

查看:39
本文介绍了我可以将 Entity Framework 6 与 Visual Studio 2010 一起使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的开发团队(和构建服务器)成功地将 Visual Studio 2010 和 Visual Studio 2012 混合用于我们的应用程序.

Our development team (and build servers) successfully use a mixture of Visual Studio 2010 and Visual Studio 2012 for our application.

但是,自从从 EF5 升级到 EF6 后,我们似乎不再能够使用 VS2010 进行构建.具体来说,构建机器根本不会构建.我桌面上的 VS2010 似乎可以构建,但出现以下错误:

However, since upgrading from EF5 to EF6, we no longer seem to be able to build with VS2010. Specifically, the build machines won't build at all. VS2010 on my desktop does seem to build, but I get the following errors:

Error   4   Error 10023: Could not find the conceptual model to validate. 
Error   5   Error 10024: Could not find the storage model to validate.
Error   6   Error 10025: Could not find the mapping model to validate.

我们的构建机器没有 .Net 4.5,我们的桌面机器(由于 IT 政策)有 .Net 4.5.在没有 4.5 的机器上,我们还会得到以下内容,这会阻止程序集生成.

Our build machines do not have .Net 4.5, our Desktop machines (due to IT policy) do have .Net 4.5. On the machines without 4.5, we also get the following, which prevent assembly generation.

Could not find the Conceptual Schema node to embed as a resource for input file

推荐答案

您可以在 .NET Framework 4/Visual Studio 2010 中使用 EF6 运行时,但是 EF6 工具不支持 VS2010.EF 工具已更新为与 VS2012 和 VS2013 的 EF6 一起使用.换句话说,在 VS2010 和 EF6 上,您可以执行 CodeFirst,但不能执行 ModelFirst/DatabaseFirst.

You can use EF6 runtime with .NET Framework 4/Visual Studio 2010 however EF6 tooling does not support VS2010. EF tooling was updated to work with EF6 for VS2012 and VS2013. In other words on VS2010 and EF6 you can do CodeFirst but not ModelFirst/DatabaseFirst.

这篇关于我可以将 Entity Framework 6 与 Visual Studio 2010 一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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