- Move the
ApplicationUserdefinition to your DAL. - Inherit your
MyDbContextfromIdentityDbContext<ApplicationUser>orIdentityDbContext - OnModelCreating - Provide the foreign key info.
- Pass
MyDbContextwhile creating theUserManager<ApplicationUser>