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

前端 未结 4 1906
闹比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 09:05

    I had the same problem, In my case the connection string is being read from the web project not the EntityFramework project, so i made the my Web project the Solution StartUp project so the Package Console Manager can read the connection string, and in Package Console Manager i choosed EntityFramework project as Default project.

提交回复
热议问题