Why is Asp.Net Identity IdentityDbContext a Black-Box?
问题 There is a lot of confusion it seems around IdentityDbContext. If we create two Database Contexts in our application, one for Identity and one for our custom business data, the Identity Database Context inherits from IdentityDbContext while our custom business data inherits from DbContext. So let's add the following to a controller: private MyDbContext db = new MyDbContext(); private ApplicationDbContext identityDb = new ApplicationDbContext(); And the following to an Index method in the