What do I do to correct this?
I am trying to implement roles. My db context was formed in a scaffolding of the database, so I don't know which class I should derivate.
CodePudding user response:
The error is the type you are passing at .AddRoles(), it should be IdentityRole
not IdentityUser.
Use the code below;
.AddRoles<IdentityRole>()