I have created an asp.net
mvc
Project that is using the Entity Framework Code first. Migrations are enabled.
When I deploy Project on IIS
, the migrations error that occurs is:
Migrations is enabled for context 'MyContext' but the database does not exist or contains no mapped tables. Use Migrations to create the database and its tables, for example by running the 'Update-Database' command from the Package Manager Console.**