好的,这个问题已经问了很多遍了。只是搜索错误消息:

The specified named connection is either not found in the configuration,
not intended to be used with the EntityClient provider, or not valid.

我已经尝试了所有关于论坛,帮助站点和博客的建议,但没有任何效果!

情况回顾

我将解决方案分为三个不同的项目:一个用于EF4模型,一个用于WinForm,另一个用于ASP.NET MVC Web应用程序。我的连接字符串和配置有问题。

是否有使用VS2010/EF4/.NET Framework 4.0的更新解决方案?

最佳答案

不确定,但是您可能必须将EF4项目的app.config文件中的“ Entity Framework ”配置节移动到WinForm app.config和ASP.NET MVC web.config文件中。

关于entity-framework - 如何让多个项目访问同一个Entity Framework项目?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/2724834/

10-12 14:21
查看更多