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

前端 未结 8 1053
故里飘歌
故里飘歌 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:14

    I also encountered the similar exception. AppConfig is originally gets created in the project that we generate the entity model. But if you are executing the application using some other project (there are several Projects in my solution), the AppConfig needs to be included in the project which is being executed.

提交回复
热议问题