Loading

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复制到全部项目中去

 

posted @ 2016-02-04 15:51  Dhoopu  阅读(1164)  评论(1编辑  收藏  举报