Error when updating DB: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified

前端 未结 4 1880
闹比i
闹比i 2021-01-18 08:11

I\'m using EF6 and have been making a few changes to my model. Now all the sudden I get the following error when trying to update my database through the nuget command U

4条回答
  •  有刺的猬
    2021-01-18 08:59

    Thats caused when your migrations project is not the StartUp project, which means you'll need to set the connectionstring in the StartUp project for it to work correctly.

    Hope it helps. Best Regards.

提交回复
热议问题