Store does not implement IUserRoleStore<TUser> ASP.NET Core 2.1 Identity
问题 I'm using ASP.NET Core 2.1 Identity. I've overridden IdentityUser because I need to add some additional properties on the user. In Startup.cs services.AddDefaultIdentity<PortalUser>().AddEntityFrameworkStores<ApplicationDbContext>(); ApplicationDbContext.cs public partial class ApplicationDbContext : IdentityDbContext<PortalUser> { public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options) { } } PortalUser class public class PortalUser : IdentityUser {