Closed zebamba closed 8 years ago
There's a IQueryable property on the UserAccountService (if your DB layer supports it), or you can hit the DB directly via your DB framework.
Is this method on line 143?
public virtual IUserAccountQueryQuery
Thank you.
Yes.
You can close the question. Thank you.
Here's an example how to find accounts by particular claim:
public IEnumerable<UserAccountQueryResult> GetUsersByClaim(string claimType, string claimValue)
{
return userAccountService.Query.Query(
users =>
users.Where(user => user.ClaimCollection.Any(claim => claim.Type == claimType && claim.Value == claimValue)));
}
Is it possible to get a list of account from same claim?
On my application location is a claim on Users, I need to get a list of users that belongs to same location / contains particular claim.
Thank you.