c# - 'The model backing the '' context has changed since the database was created' - in different project -
i'm using ef code first approach , have static method used authentication. if call inside project, works fine, if call different project following error:
the model backing '' context has changed since database created. consider using code first migrations update database...
any ideas why might happening?
the solution is:
- add entity framework each project
- inside project raise database add global.asax
inside application_start add following line:
database.setinitializer< namespace.entities>(null);
where namespace.entities
address dbcontext
.
Comments
Post a Comment