Before we start using migrations we need a project and a CodeFirst model to work with. For this walkthrough we are going to use the canonical Blog and Post model. The Contoso University sample web application demonstrates how to create ASP.NET MVC 5 applications using the Entity Framework 6CodeFirst and Visual Studio 2013. For information about the tutorial series, see the firsttutorial in the series. So far the application has been running locally in IIS Entity framework codefirst has different database initialization strategies prior to EF 4.3 like CreateDatabaseIfNotExists, DropCreateDatabaseIfModelChanges or DropCreateDatabaseAlways. Entity Framework Code-Based Configuration (EF6 onwards) To do this we are going to use a feature called CodeFirstMigrations, or Migrations for short. Code-Based Migration in Entity Framework 6: To use code-based migrations, first execute the enable-migrations command in the Package EF6Code-First Demo Entity Framework 4.3 includes a new CodeFirstMigrations feature that allows you to incrementally evolve the database schema as your model changes over time. A newer version of this tutorial Getting Started with Entity Framework 6Code Later you'll see how to handle model changes by using CodeFirstMigrations to Learn Entity Framework 6Code-First approach using step-by-step and easy tutorials. What is Code-First?: Entity Framework automated migration or code Entity Framework CodeFirstMigrations. Entity Framework CodeFirst to a New Database. Entity Framework CodeFirst to a New Database Video. tutorials Explore how Code-FirstMigrations can help you maintain your EF project without writing any SQL. Sample project included!