All-Star
52091 Points
23222 Posts
Sep 24, 2018 02:14 PM|mgebhard|LINK
The update-database updates the DB to the target migration. Run remove-migration to remove the migration file otherwise you'll add the migration the next time you run add-migration.
See the support docs for operations.
https://docs.microsoft.com/en-us/ef/core/managing-schemas/migrations/
All-Star
52091 Points
23222 Posts
Re: -targetmigration
Sep 24, 2018 02:14 PM|mgebhard|LINK
The update-database updates the DB to the target migration. Run remove-migration to remove the migration file otherwise you'll add the migration the next time you run add-migration.
See the support docs for operations.
https://docs.microsoft.com/en-us/ef/core/managing-schemas/migrations/