Using Code First Migrations
In this recipe we will use Code First code Migrations to evolve our model and update the database. You might be asking yourself why this is so important. Isn't this just another way of doing something we already knew how to do?
Not so! It solves a very important problem in a simple and efficient way. Haven't we all at some time had the problem of deploying software and keeping the database up-to-date? Well, this solves this exact problem. And in a very easy and simple way, I must add.
How? Keep reading.
Getting ready
In order to use this recipe, you should have Visual Studio 2012 installed. It would be good to have implemented the previous recipe and worked on the resulting solution.
How to do it...
Using this recipe we will ...
Get Microsoft .NET Framework 4.5 Quickstart Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.