The error persists even after removing the field "HosteBy" manually from the database. For example, the DropCreateDatabaseIfModelChanges strategy will automatically delete and recreate the database, and optionally seed it with new data. Either manually delete/update the database, or call Database.SetInitializer with an IDatabaseInitializer instance. The model backing the 'NerdDinners' context has changed since the database was created. ![]() ![]() For example, if I remove "HosteBy" from this class. It works fine unless I remove a property from a model object. I've build a little WPF demo app which uses EF Code-First to save its data in a SQL CE 4.0 DB.
0 Comments
Leave a Reply. |