

Consult the other pages in this section for more in-depth information. The rest of this page is a step-by-step beginner's guide for using migrations. EF Core records all applied migrations in a special history table, allowing it to know which migrations have been applied and which haven't.

DOTNET EF COMMANDS UPDATE
The migrations feature in EF Core provides a way to incrementally update the database schema to keep it in sync with the application's data model while preserving existing data in the database.Īt a high level, migrations function in the following way: In real world projects, data models change as features get implemented: new entities or properties are added and removed, and database schemas need to be changed accordingly to be kept in sync with the application.
