EF Core Migrations
Built into the frameworkThe migration feature built into C# EF Core: after you change the data model in code, it automatically generates the database change script.
Best forC# projects using EF Core.
Avoid whenThe project does not use EF Core, or you need to hand-write complex data-modification scripts.
After a model change, one command generates the migration, saving hand-written SQL
Tightly integrated with EF Core, so the team picks it up quickly
Can generate SQL scripts for ops to review before running
Generated scripts are sometimes not what you want (for example, a rename is detected as drop-then-add and may lose data), so they must be checked by hand
When several people change the model at once, migration files conflict easily
Only for projects using EF Core