1 write to RoleId
Microsoft.AspNetCore.Identity.InMemory.Test (1)
InMemoryStore.cs (1)
23
user.Roles.Add(new PocoUserRole {
RoleId
= roleEntity.Id, UserId = user.Id });
4 references to RoleId
Microsoft.AspNetCore.Identity.InMemory.Test (4)
InMemoryStore.cs (4)
32
var roleEntity = user.Roles.SingleOrDefault(ur => ur.
RoleId
== roleObject.Id);
43
foreach (var r in user.Roles.Select(ur => ur.
RoleId
))
53
bool result = roleObject != null && user.Roles.Any(ur => ur.
RoleId
== roleObject.Id);
67
return Task.FromResult<IList<TUser>>(Users.Where(u => (u.Roles.Where(x => x.
RoleId
== role.Id).Any())).Select(x => x).ToList());