How to unapply a migration in ASP.NET Core with EF Core

前端 未结 16 2259
余生分开走
余生分开走 2020-12-07 08:10

When I run PM> Remove-Migration -context BloggingContext in VS2015 with an ASP.NET Core project using EF Core I get the following error:

Syst         


        
16条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-07 09:03

    1.find table "dbo._EFMigrationsHistory", then delete the migration record that you want to remove. 2. run "remove-migration" in PM(Package Manager Console). Works for me.

提交回复
热议问题