No connection string named 'MyApplicationEntities' could be found in the application config file

前端 未结 8 1051
故里飘歌
故里飘歌 2020-12-03 00:34

I just install EF 4.3 and trying to upgrade my project with migration. however I am getting issues with trying to execute add-migration initial to my project vi

8条回答
  •  孤街浪徒
    2020-12-03 01:13

    The solution as Sanj pointed out is that you need to copy the connection string from your database project's App.config to the web project's web.config. I'm not sure why the above answer is marked as correct. I'm adding this as an answer instead of a comment so future readers will spot this.

提交回复
热议问题