Solved : context has changed since the database was created. Consider using Code First Migrations to update the database

Solution: Are you moving changes from Development Environment to staging and you are getting above error, well there is a very quick and simple solution to the problem. Just got to database and delete this table, and it will solve the issue, given that you already have moved the changes to the required tables etc…

Continue Reading

How to force Entity Framework to Always Load Fresh copy of Data from the Database

How to force Entity Framework to Always Load Fresh copy of Data from the Database Solution: There are many solution to achieve this result. The most popular and easiest one is to dispose the existing context object and create new one entities.Dispose(); entities = new Entities(); // DbContext but it is not optimal you are…

Continue Reading