Reputation: 21
Following Error i get it, Migrations is enabled for context 'ApplicationDbContext' 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 Consol
Upvotes: 0
Views: 3099
Reputation: 3616
You need to perform this commands in Package Manager Consol
Enable-Migrations
Add-Migration "Initial"
Update-Database
There you will have a database with migrations based on your models classes
Upvotes: 2