Migrations help us ensure that the database schema and the domain model in the appliation are in sync.
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. Migrations 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.
More on Migrations with EF (Entity Framework) here
Comments
Post a Comment