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

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

    Make sure your statup project config file has the connection string.This link may help you.

    0 讨论(0)
  • 2020-12-03 01:16

    I also had this problem and solved it by

    1. Selecting the correct StartUp project.
    2. Rerunning the command on Package Manager Console.

    Things worked out as expected.

    0 讨论(0)
提交回复
热议问题