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

 

你可能感兴趣的:(No connection string named '***' could be found in the application config file)