mirror of
https://github.com/bitwarden/server.git
synced 2026-02-02 15:13:19 +08:00
* Move OrganizationUser domain to AC Team ownership * Namespaces will be updated in a separate commit
22 lines
648 B
C#
22 lines
648 B
C#
using Bit.Infrastructure.EntityFramework.Models;
|
|
|
|
namespace Bit.Infrastructure.EntityFramework.Repositories.Queries;
|
|
|
|
public class OrganizationUserReadCountByOrganizationIdQuery : IQuery<OrganizationUser>
|
|
{
|
|
private readonly Guid _organizationId;
|
|
|
|
public OrganizationUserReadCountByOrganizationIdQuery(Guid organizationId)
|
|
{
|
|
_organizationId = organizationId;
|
|
}
|
|
|
|
public IQueryable<OrganizationUser> Run(DatabaseContext dbContext)
|
|
{
|
|
var query = from ou in dbContext.OrganizationUsers
|
|
where ou.OrganizationId == _organizationId
|
|
select ou;
|
|
return query;
|
|
}
|
|
}
|