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