When using EF Core I can create a migration using the following command:
Now I would like to make some changes to the data model and update the
Foo migration accordingly. Currently I need to do that in two steps.
Remove-Migration; Add-Migration Foo
Is there any command which will remove and re-add the migration in one step? Something like
or something equivalent to
-Force parameter in EF6?
There is no command for this, And one more thing that you don't remove migration
Fooand create it again. Instead of doing this you create a new migration for new changes. because it will be easy for you to track these new changes in the future. you can easily find that you modify these changes in this particular migration.