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

前端 未结 7 1122
既然无缘
既然无缘 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:35

    I just used this command:

    Update-Package EntityFramework -Reinstall
    
    0 讨论(0)
  • 2021-01-04 03:36

    In my case, helped installing EntityFramework package first:

    Install-Package EntityFramework
    

    and then installing EntityFramework.Migrations again:

    Install-Package EntityFramework.Migrations
    
    0 讨论(0)
  • 2021-01-04 03:39

    Restarting Visual Studio solved the problem for me...

    0 讨论(0)
  • 2021-01-04 03:43

    Not the best solution but to get it to work again I had to re-install the EntityFramework.Migrations package. After it had reapplied the Init.ps1 it remembered all the commands.

    0 讨论(0)
  • 2021-01-04 03:45

    For me the problem was the Nuget version.

    1. uninstall Nuget Package Manager.
    2. restart Visual Studio.
    3. installed new version of Nuget Package Manager.
    4. then re-start Visual Studio again
    0 讨论(0)
  • 2021-01-04 03:49

    Occurs with EF5 RTM, VS2012 RTM.

    I experienced this problem today. I executed "Update-Package EntityFramework" in the PM Console. No changes were reported by NuGet and the problem persisted. I then restarted VS2012 and re-attempted Update-Database and it worked as expected. It's not clear what caused this problem, it's also not clear whether the Update-Package contributed to correcting it or not.

    First try restarting Visual Studio, then try Update-Package EntityFramework followed by a restart.

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