EF 4.2 Code First, using an existing database?
Just trying to figure out if this has been solved or not.
I have a database (already created) and i want to let EF CF create the tables that are missing based on the models, is that possible?
I can't delete the database/create a new database for this, i just want it to maintain the tables based on the models).
Something like DropTablesIfModelChanges or similar.
You can do this using EntityFramework.SqlMigrations
It is avaliable using NuGet
Scott Hanselman wrote a nice blog post about that. Entity Framework Code First Migrations
hope this helps