15 references to Where
Microsoft.AspNetCore.Identity.EntityFrameworkCore (10)
RoleStore.cs (2)
341
return await RoleClaims.
Where
(rc => rc.RoleId.Equals(role.Id)).Select(c => new Claim(c.ClaimType!, c.ClaimValue!)).ToListAsync(cancellationToken);
373
var claims = await RoleClaims.
Where
(rc => rc.RoleId.Equals(role.Id) && rc.ClaimValue == claim.Value && rc.ClaimType == claim.Type).ToListAsync(cancellationToken);
UserOnlyStore.cs (4)
296
return await UserClaims.
Where
(uc => uc.UserId.Equals(user.Id)).Select(c => c.ToClaim()).ToListAsync(cancellationToken);
333
var matchedClaims = await UserClaims.
Where
(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken);
355
var matchedClaims = await UserClaims.
Where
(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken);
416
return await UserLogins.
Where
(l => l.UserId.Equals(userId))
UserStore.cs (4)
411
return await UserClaims.
Where
(uc => uc.UserId.Equals(user.Id)).Select(c => c.ToClaim()).ToListAsync(cancellationToken);
448
var matchedClaims = await UserClaims.
Where
(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken);
470
var matchedClaims = await UserClaims.
Where
(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken);
531
return await UserLogins.
Where
(l => l.UserId.Equals(userId))
Microsoft.AspNetCore.Identity.InMemory.Test (1)
InMemoryStore.cs (1)
67
return Task.FromResult<IList<TUser>>(Users.
Where
(u => (u.Roles.Where(x => x.RoleId == role.Id).Any())).Select(x => x).ToList());
Microsoft.AspNetCore.Identity.Specification.Tests (2)
IdentitySpecificationTestBase.cs (1)
333
Assert.Empty(manager.Roles.
Where
(func));
UserManagerSpecificationTests.cs (1)
942
Assert.Empty(mgr.Users.
Where
(UserNameEqualsPredicate("bogus")));
RateLimitingSample (1)
Program.cs (1)
62
await db.Todos.
Where
(t => t.IsComplete).ToListAsync())
System.Linq.Queryable (1)
System\Linq\Queryable.cs (1)
54
new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, IQueryable<TSource>>(
Where
).Method,