AddEntityFrameworkStores can only be called with a user that derives from IdentityUser<TKey>
问题 I'm trying to create some roles for my web application but it isn't really working because of a Tkey exception . I don't know how I can fix it. I think there is a problem with my Startup.cs. Whatever i try to add the DefaultIdentity and adding the roles. Startup.cs - On this line I get an Error: services.AddDefaultIdentity<IdentityRole>().AddRoles<IdentityRole>().AddDefaultUI().AddEntityFrameworkStores<VerwaltungsprogrammContext>(); This is the Error Message: AddEntityFrameworkStores can only