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

上一篇:ajax删除数据(不跳转页面)


下一篇:c语言贪吃蛇详解1.画出地图