EF 5 - Model First, How to update DB Schema without dropping database

asp.net-mvc entity-framework

Question

I'm using EF 5.0 and MVC 4 to develop.

How can I "simply" alter the database schema using model-first development without having to dump the database or delete any data?

e.g. I have a table for customers. We record name, last name, and email address in this table. I edit the model and ask EF to update the database schema since I now want to gather the phone number.

Zzz-17-Zzz is what Visual Studio 2012 refers to, but to me, this sounds Chinese.

They discuss using the code first migrations NUGET package. Does VS2012 not automatically provide this functionality?

Thanks

1
6
10/1/2012 6:54:41 PM

Popular Answer

You are searching for database migrations. Automatic and code-specified - http://msdn.microsoft.com/pl-PL/data/jj591621

3
10/1/2012 6:58:00 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow