जब मैं PM> Remove-Migration -context BloggingContext
VS2015 में ASP.NET कोर प्रोजेक्ट के साथ EF Core का उपयोग करके चलाता हूं तो मुझे निम्नलिखित त्रुटि मिलती है:
System.InvalidOperationException: The migration '20160703192724_MyFirstMigration' has already been applied to the database. Unapply it and try again. If the migration has been applied to other databases, consider reverting its changes using a new migration. at Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolder.RemoveMigration(String projectDir, String rootNamespace, Boolean force)
at Microsoft.EntityFrameworkCore.Design.MigrationsOperations.RemoveMigration(String contextType, Boolean force)
at Microsoft.EntityFrameworkCore.Tools.Cli.MigrationsRemoveCommand.<>c__DisplayClass0_0.<Configure>b__0()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.EntityFrameworkCore.Tools.Cli.Program.Main(String[] args)
The migration '20160703192724_MyFirstMigration' has already been applied to the database. Unapply it and try again. If the migration has been applied to other databases, consider reverting its changes using a new migration.
मैं इसे कैसे अनपेक्षित कर सकता हूं? मैं ASP.NET कोर 1.0, EF कोर और VS2015 अपडेट 3 की नवीनतम रिलीज का उपयोग कर रहा हूं।
-force
अंत में जोड़ने का प्रयास करें