错误提示:
The model backing the 'xyzContext' context has changed since the database was created. Either manually delete/update the database, or call Database.SetInitializer with an IDatabaseInitializer instance. For example, the RecreateDatabaseIfModelChanges strategy will automatically delete and recreate the database, and optionally seed it with new data.
解决办法:
This is a bug in CTP4 for using EF with pre-existing databases.
You can fix it by calling:
Database.SetInitializer<YourContext>(null);
in the Application_Start method of Global.asax