mirror of
https://github.com/bitwarden/server
synced 2025-12-17 08:43:27 +00:00
Revert filescoped (#2227)
* Revert "Add git blame entry (#2226)" This reverts commit239286737d. * Revert "Turn on file scoped namespaces (#2225)" This reverts commit34fb4cca2a.
This commit is contained in:
@@ -1,21 +1,22 @@
|
||||
using Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Repositories.Queries;
|
||||
|
||||
public class CollectionReadCountByOrganizationIdQuery : IQuery<Collection>
|
||||
namespace Bit.Infrastructure.EntityFramework.Repositories.Queries
|
||||
{
|
||||
private readonly Guid _organizationId;
|
||||
|
||||
public CollectionReadCountByOrganizationIdQuery(Guid organizationId)
|
||||
public class CollectionReadCountByOrganizationIdQuery : IQuery<Collection>
|
||||
{
|
||||
_organizationId = organizationId;
|
||||
}
|
||||
private readonly Guid _organizationId;
|
||||
|
||||
public IQueryable<Collection> Run(DatabaseContext dbContext)
|
||||
{
|
||||
var query = from c in dbContext.Collections
|
||||
where c.OrganizationId == _organizationId
|
||||
select c;
|
||||
return query;
|
||||
public CollectionReadCountByOrganizationIdQuery(Guid organizationId)
|
||||
{
|
||||
_organizationId = organizationId;
|
||||
}
|
||||
|
||||
public IQueryable<Collection> Run(DatabaseContext dbContext)
|
||||
{
|
||||
var query = from c in dbContext.Collections
|
||||
where c.OrganizationId == _organizationId
|
||||
select c;
|
||||
return query;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user