gpt4 book ai didi

entity-framework - 如何让多个项目访问同一个 Entity Framework 项目?

转载 作者:行者123 更新时间:2023-12-03 07:35:33 25 4
gpt4 key购买 nike

好的,这个问题已经被问过很多次了。只需谷歌搜索错误消息:

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com