No connection string named '***' could be found in the application config file
Code-First时更新数据库遇到妖孽问题“No connection string named '***' could be found in the application config file”
原文链接:http://stackoverflow.com/questions/12622408/no-connection-string-named-myentities-could-be-found-in-the-application-config
解决方法:
Try copying the connections string to the .config file in the MVC project.
如果同时存在web项目和ConsoleApplication项目,那么都需要将connectstring复制到全部项目中去
|
🐳 作者:dupeng0811 📢 版权:本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接 💬 留言:同时 , 如果文中有什么错误,欢迎指出。以免更多的人被误导。 |
|

浙公网安备 33010602011771号