1
Hello
First of all "migration" is related to code-first , not DB First
There is no migration needed for DB First approach .
For code first migration : you should write update-database if your DB have pending changes
To enable migration - automatically write following snippet in configuration.cs file:
- AutomaticMigrationsEnabled = true;
- AutomaticMigrationDataLossAllowed = false;
Thanks