您的位置:首页 > 其它

The specified named connection is either not found in the configuration, not intended to be used

2013-07-10 15:44 615 查看



今天用EF遇到一个问题, The specified named connection is either not found in the configuration, not intended to be used。。。。。。。

原因是我的EF中数据库连接字符串放到App.Config文件中, 而我另一个工程使用此工程时没有添加App.Config 或者Web.Config

解决办法:在调用工程中添加App.Config, 或者Web.Config , 然后把EF工程中的连接字符串添加到此config文件里。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐