Combine my ApplicationsDbContext with IdentityDbContext no key defined using MVC 5
I was combining my existing DBContext with the new IdentityDbContext in MVC 5. I managed to combine the two contexts but when I ran my application and the model was being created I was presented with the following error message: Context.IdentityUserLogin: : EntityType 'IdentityUserLogin' has no key defined. Define the key for this EntityType. Context.IdentityUserRole: : EntityType 'IdentityUserRole' has no key defined. Define the key for this EntityType. I worked out how to fix it after doing a bit of reading. Create the two following configuration classes (keeps it clean in your