I have changed my original MVC 4 models. I dropped one object and renamed and added properties to the other.
In my Application_Start()
I have the following to update my Database:
Database.SetInitializer(new DropCreateDatabaseIfModelChanges<myDB>());
public class IntranetAdsDBInitializer : DropCreateDatabaseIfModelChanges<myDB>
{
protected override void Seed(myDB_context)
{
base.Seed(context);
}
}
I re-built the project and ran it and my database now reflects the changes. Great!
But now I'm left with all the other files (Views, Controllers) that still have references to the original model. Is there a way that I can have my changes re-scaffold automatically or do I have to do everything by hand?