Class EfCoreTenantRepository
Inheritance
EfCoreTenantRepository
Implements
Inherited Members
Namespace: Volo.Abp.TenantManagement.EntityFrameworkCore
Assembly: Volo.Abp.TenantManagement.EntityFrameworkCore.dll
Syntax
public class EfCoreTenantRepository : EfCoreRepository<ITenantManagementDbContext, Tenant, Guid>, IServiceProviderAccessor, IUnitOfWorkEnabled, IUnitOfWorkManagerAccessor, IEfCoreRepository<Tenant, Guid>, IEfCoreRepository<Tenant>, IRepository<Tenant, Guid>, IRepository<Tenant>, IReadOnlyRepository<Tenant, Guid>, IReadOnlyRepository<Tenant>, IBasicRepository<Tenant, Guid>, ISupportsExplicitLoading<Tenant>, ITenantRepository, IBasicRepository<Tenant, Guid>, IBasicRepository<Tenant>, IReadOnlyBasicRepository<Tenant, Guid>, IReadOnlyBasicRepository<Tenant>, IRepository
Constructors
EfCoreTenantRepository(IDbContextProvider<ITenantManagementDbContext>)
Declaration
public EfCoreTenantRepository(IDbContextProvider<ITenantManagementDbContext> dbContextProvider)
Parameters
Type | Name | Description |
---|---|---|
IDbContextProvider<ITenantManagementDbContext> | 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>> |
WithDetails()
Declaration
[Obsolete("Use WithDetailsAsync method.")]
public override IQueryable<Tenant> WithDetails()
Returns
Type | Description |
---|---|
IQueryable<Tenant> |
Overrides
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Abp.TenantManagement.EntityFrameworkCore.ITenantManagementDbContext, Volo.Abp.TenantManagement.Tenant>.WithDetails()
WithDetailsAsync()
Declaration
public override Task<IQueryable<Tenant>> WithDetailsAsync()
Returns
Type | Description |
---|---|
Task<IQueryable<Tenant>> |
Overrides
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Abp.TenantManagement.EntityFrameworkCore.ITenantManagementDbContext, Volo.Abp.TenantManagement.Tenant>.WithDetailsAsync()