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
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