关于MVC4-5 添加EF controller时 EF为同级类库时,报错时的问题解决。

关于MVC4-5 添加EF controller时 EF为同级类库时,报错时的问题解决。、

 unable to retrieve metadata No connection string named 'MyEntities' could be found in the application config file.

这地方是说EF类库中的App.config配置了 链接串,web.config中没有配置。所以会报上面这个错,查了20多分钟 才搞定。哎。怎么会有这种问题呢。 



原文地址:https://www.cnblogs.com/qq22144770/p/4770825.html