EF6 Code first “model backing DataContext has changed” error (.mdf Db)
问题 I'm new to the code first methodology. I'm getting this error: "The model backing the 'DataContext' context has changed since the database was created. Consider using Code First Migrations to update the database". I have a WPF app using EF6 & MVVM running against a local db (.mdf life). I created a new model, called langauges then I added a new DbSet< langauges > collection to my datacontext. When the code tries to instantiate the a datacontext object, I get the error above. What am I missing