0
hakan created
To add a Userrole I use this( from DefaultTenantRoleAndUserBuilder.cs)
_context.UserRoles.Add(new UserRole(adminUserForDefaultTenant.Id, adminRoleForDefaultTenant.Id));
_context.SaveChanges();
But how to remove a Userrole?
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
0
Always use UserManager to add/remove a role to/from a user.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)