update-database error - NuGet Package (EntityFramework.SqlMigrations)

前端 未结 7 1123
既然无缘
既然无缘 2021-01-04 03:10

i installed EntityFramework.SqlMigrations NuGet Package and i get this error . it worked for me in the past and somehow, now it does not work.

PM> update         


        
相关标签:
7条回答
  • 2021-01-04 03:53

    After trying everything else, the only way I could get my EntityFramework Migrations commands back was to run the following from the "Package Manager Console":

    Import-Module \*PathToSolution*\packages\EntityFramework.5.0.0-beta2\tools\EntityFramework.psd1
    

    After running the above, Add-Migration, Update-Database, etc. was available again.

    0 讨论(0)
提交回复
热议问题