I am trying to target a previous applied migration using dotnet ef -TargetMigration: {MigrationName}
getting below error
Unrecognized option '-TargetMigration:0'
Is this command has been removed in Entity Framework Core? Is there any alternative for this?
You can use as shown below on the package manager console
:
PM > Update-Database [[-Migration] <String>]
Parameter :
-Migration <String>
Specifies the target migration.
If '0', all migrations will be reverted.