Entity Framework Code-First includes a new feature for maintaining database changes in code files: Migrations.

Migrations are code files that describe what changes were made to the database schema at different points in time. You create the migrations when you need them, and the code will use those files (and a corresponding table in the target database) to keep the schema changes in sync with what the code expects. In other words, you can manage your database schema without ever writing any SQL.


Using Code-First Migrations in Entity Framework
1.25 GEEK