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

浙公网安备 33010602011771号