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

 

相关文章:

  • 2021-09-18
  • 2021-10-02
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
猜你喜欢
  • 2022-01-20
  • 2021-09-20
  • 2021-06-23
  • 2021-08-07
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案