No service for type Identity.UserManager when using multiple identity users
问题 My setup Currently, I have two models that inherit from ApplicationUser , which inherits IdentityUser . The user classes are: public abstract class ApplicationUser : IdentityUser { [PersonalData] public string FirstName { get; set; } [PersonalData] public string LastName { get; set; } [NotMapped] public string FullName => $"{FirstName} {LastName}"; } public class StudentUser : ApplicationUser { [PersonalData] [Required] public string StudentNumber { get; set; } // A user belongs to one group