Migrations is a feature of Entity Framework that provides for detecting changes to a code(or database)-first model, and upgrading the database (or the model) schema based on those changes.
Migrations is a feature of Entity Framework that provides for detecting changes to a code(or database)-first model, and upgrading the database (or the model) schema based on those changes.
- Code First Migrations have been included in Entity Framework since version 4.3.
- The Database First Approach provides an alternative to the Code First approach to the Entity Data Model. It creates model codes (classes, properties, DbContext etc.) from the database in the project and those classes become the link between the database and controller.
MSDN Resources
- Code First Migrations
Walkthrough that provides an overview - Automatic Code First Migrations
Feature that allows you to use Code First Migrations without a code file for each change; not recommended for team environments - Code First Migrations with an existing database
- Team Environments
Guidelines and details for how to manage migrations with multiple developers - Customizing the Migrations History Table (EF6+ Only)
- Writing Your Own Code First Migration Operations (EF6+ Only)
- migrate.exe
The command line tool for using Code First Migrations
Package Manager Command Reference
http://coding.abel.nu/2012/03/ef-migrations-command-reference/
See sqlmigrations for old versions