Friday, 20 March 2015

Mvc DbUpdateConcurrencyException

Exception :-DbUpdateConcurrencyException thrown:-

Solution :-

If you have manually created the table in the database, then delete it and let the entity framework made the table
automatically.

Run the following command in the nudget console :-
PM>enable-migrations -ContextTypeName EmployeeContext

PM>add-migration InitialCreate

PM>update-database -verbose

No comments:

Post a Comment