IdentityDbContext
- Move the
ApplicationUser
definition to your DAL. - Inherit your
MyDbContext
fromIdentityDbContext<ApplicationUser>
orIdentityDbContext
- OnModelCreating - Provide the foreign key info.
- Pass
MyDbContext
while creating theUserManager<ApplicationUser>