Enable-Migrations installation error

前端 未结 5 1330
春和景丽
春和景丽 2020-12-06 10:06

I\'m running into a problem when enabling migrations on one of my projects. I execute Enable-Migrations command from the Nuget Console and receive an err

5条回答
  •  再見小時候
    2020-12-06 10:40

    I was having this issue too and realized that it couldn't connect because the startup web.config didn't contain the EF configuration details. The project that did contain it (the data layer) has the configuration info needed but that config isn't used. Simply move the EF config info from the config file where EF is being used and put it in the config of your startup project. Worked a treat for me.

提交回复
热议问题