Reputation: 969
I am developing winform application using entityframework in visual studio 2012 with database first approach. Suddenly I am facing the following error:-
The model backing the 'POSContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).
Can any please immediately help me to resolve this issue. I shall be very thankful for timely help.
Thanks.
Upvotes: 5
Views: 1483
Reputation: 11568
make sure that you don't have a database initialized. Only have to call it once so you could put it in a static constructor of your DbContext class
Database.SetInitializer<YourDbContext>(null);
Upvotes: 6