Error in update-database command in code first migration

后端 未结 10 1555
盖世英雄少女心
盖世英雄少女心 2020-12-15 05:01

I am working on Desktop application in WPF and creating SqlRepository with LocalDB to store data. I am using following tools

  • Visual Studio 20
10条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-15 05:35

    PM>Update-Database
    

    error and solution which I did today in 4 hours. I am very much new in .net coding, but yes in PHP I have 10+ years experience. It took me 4 hours to solve this. 1.My first Mistake: I was not having Microsoft SQL Server 2019 in my laptop locally I was having this through AZURE which is not works for localhost, so I installed this locally after download, it took around 2 Hours. 2.Second changed mistake=

     "DevConnection": "Server=localhost;Database=PaymentDetailDB;Trusted_Connection=True;MultipleActiveResultSets=True;"
    

    then it works for me

提交回复
热议问题