79535730

Date: 2025-03-26 08:02:55
Score: 0.5
Natty:
Report link

Use AddRoles<TRole>

services.AddIdentityCore<AppUser>()
.AddUserManager<UserManager<AppUser>>()
.AddSignInManager<SignInManager<AppUser>>()
.AddRoles<IdentityRole>()     // <= like that
.AddEntityFrameworkStores<DataContext>();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sergey Anisimov