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

前端 未结 4 1905
闹比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:51

    An error like this can happen if you have multiple projects in the solution. Run update-database - Verbose and ensure that the default project in the package manager console and the StartUp project in the solution explorer are set to the project which contains the code migrations.

提交回复
热议问题