Class MongoTenantRepository
Inheritance
MongoTenantRepository
Implements
Inherited Members
Namespace: Volo.Abp.TenantManagement.MongoDB
Assembly: Volo.Abp.TenantManagement.MongoDB.dll
Syntax
public class MongoTenantRepository : MongoDbRepository<ITenantManagementMongoDbContext, Tenant, Guid>, IServiceProviderAccessor, IUnitOfWorkEnabled, IUnitOfWorkManagerAccessor, IMongoDbRepository<Tenant, Guid>, IMongoDbRepository<Tenant>, IRepository<Tenant, Guid>, IRepository<Tenant>, IReadOnlyRepository<Tenant, Guid>, IReadOnlyRepository<Tenant>, IBasicRepository<Tenant, Guid>, ITenantRepository, IBasicRepository<Tenant, Guid>, IBasicRepository<Tenant>, IReadOnlyBasicRepository<Tenant, Guid>, IReadOnlyBasicRepository<Tenant>, IRepository
Constructors
MongoTenantRepository(IMongoDbContextProvider<ITenantManagementMongoDbContext>)
Declaration
public MongoTenantRepository(IMongoDbContextProvider<ITenantManagementMongoDbContext> dbContextProvider)
Parameters
Type | Name | Description |
---|---|---|
IMongoDbContextProvider<ITenantManagementMongoDbContext> | dbContextProvider |
Methods
FindById(Guid, bool)
Declaration
[Obsolete("Use FindAsync method.")]
public virtual Tenant FindById(Guid id, bool includeDetails = true)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | |
bool | includeDetails |
Returns
Type | Description |
---|---|
Tenant |
FindByName(string, bool)
Declaration
[Obsolete("Use FindByNameAsync method.")]
public virtual Tenant FindByName(string normalizedName, bool includeDetails = true)
Parameters
Type | Name | Description |
---|---|---|
string | normalizedName | |
bool | includeDetails |
Returns
Type | Description |
---|---|
Tenant |
FindByNameAsync(string, bool, CancellationToken)
Declaration
public virtual Task<Tenant> FindByNameAsync(string normalizedName, bool includeDetails = true, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | normalizedName | |
bool | includeDetails | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<Tenant> |
GetCountAsync(string, CancellationToken)
Declaration
public virtual Task<long> GetCountAsync(string filter = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | filter | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<long> |
GetListAsync(string, int, int, string, bool, CancellationToken)
Declaration
public virtual Task<List<Tenant>> GetListAsync(string sorting = null, int maxResultCount = 2147483647, int skipCount = 0, string filter = null, bool includeDetails = false, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | sorting | |
int | maxResultCount | |
int | skipCount | |
string | filter | |
bool | includeDetails | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<Tenant>> |