I have a MyDbContext in a separated Data Accass Layer class library project. And I have an ASP.NET MVC 5 project with a default IdentityDbContext. The two context use the sa
The problem was caused because You overwrote the content of method "OnModelCreating" which is implemented in IdentityUser class.
You need to call OnModelCreating method from the base class first, and after that add your code. So Your method OnModelCreating should look like this:
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.Conventions.Remove();
}