Created an ASP.NET MVC 5 project with Individual User Accounts
authentication. Classes were created automatically, the connection string to work with authentication. I added my connection string, my model, my context. Example:
Модель - book`. `Контекст - Contex
In the context
DbSet book {get; set;}
Trying to enable migration ( enable-migrations
), gives an error
This context is not found in the assembly MVC. To enable migrations for 'MVC.Models.Contex', use Enable-Migrations -ContextTypeName MVC.Models.Contex. To enable migrations for 'MVC.Models.ApplicationDbContext', use Enable-Migrations -ContextTypeName MVC.Models.ApplicationDbContext.
That is, it proposes to enable migration for only one context, but how to enable it for 2 contexts? Suddenly, I plan to change the user model, for example.