Show / Hide Table of Contents

Class EfCoreTenantRepository

Inheritance
object
BasicRepositoryBase<Tenant>
RepositoryBase<Tenant>
EfCoreRepository<ITenantManagementDbContext, Tenant>
EfCoreRepository<ITenantManagementDbContext, Tenant, Guid>
EfCoreTenantRepository
Implements
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
Inherited Members
EfCoreRepository<ITenantManagementDbContext, Tenant, Guid>.GetAsync(Guid, bool, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant, Guid>.FindAsync(Guid, bool, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant, Guid>.DeleteAsync(Guid, bool, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant, Guid>.DeleteManyAsync(IEnumerable<Guid>, bool, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.GetDbContextAsync()
EfCoreRepository<ITenantManagementDbContext, Tenant>.GetDbSetAsync()
EfCoreRepository<ITenantManagementDbContext, Tenant>.GetDbConnectionAsync()
EfCoreRepository<ITenantManagementDbContext, Tenant>.GetDbTransactionAsync()
EfCoreRepository<ITenantManagementDbContext, Tenant>.InsertAsync(Tenant, bool, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.InsertManyAsync(IEnumerable<Tenant>, bool, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.UpdateAsync(Tenant, bool, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.UpdateManyAsync(IEnumerable<Tenant>, bool, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.DeleteAsync(Tenant, bool, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.DeleteManyAsync(IEnumerable<Tenant>, bool, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.GetListAsync(bool, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.GetListAsync(Expression<Func<Tenant, bool>>, bool, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.GetCountAsync(CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.GetPagedListAsync(int, int, string, bool, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.GetQueryable()
EfCoreRepository<ITenantManagementDbContext, Tenant>.GetQueryableAsync()
EfCoreRepository<ITenantManagementDbContext, Tenant>.SaveChangesAsync(CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.FindAsync(Expression<Func<Tenant, bool>>, bool, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.DeleteAsync(Expression<Func<Tenant, bool>>, bool, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.DeleteDirectAsync(Expression<Func<Tenant, bool>>, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.EnsureCollectionLoadedAsync<TProperty>(Tenant, Expression<Func<Tenant, IEnumerable<TProperty>>>, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.EnsurePropertyLoadedAsync<TProperty>(Tenant, Expression<Func<Tenant, TProperty>>, CancellationToken)
EfCoreRepository<ITenantManagementDbContext, Tenant>.WithDetails()
EfCoreRepository<ITenantManagementDbContext, Tenant>.WithDetailsAsync()
EfCoreRepository<ITenantManagementDbContext, Tenant>.WithDetails(params Expression<Func<Tenant, object>>[])
EfCoreRepository<ITenantManagementDbContext, Tenant>.WithDetailsAsync(params Expression<Func<Tenant, object>>[])
EfCoreRepository<ITenantManagementDbContext, Tenant>.CheckAndSetId(Tenant)
EfCoreRepository<ITenantManagementDbContext, Tenant>.TrySetGuidId(IEntity<Guid>)
EfCoreRepository<ITenantManagementDbContext, Tenant>.DbContext
EfCoreRepository<ITenantManagementDbContext, Tenant>.DbSet
EfCoreRepository<ITenantManagementDbContext, Tenant>.AbpEntityOptions
EfCoreRepository<ITenantManagementDbContext, Tenant>.GuidGenerator
EfCoreRepository<ITenantManagementDbContext, Tenant>.BulkOperationProvider
RepositoryBase<Tenant>.WithDetails(params Expression<Func<Tenant, object>>[])
RepositoryBase<Tenant>.WithDetailsAsync(params Expression<Func<Tenant, object>>[])
RepositoryBase<Tenant>.GetQueryable()
RepositoryBase<Tenant>.GetQueryableAsync()
RepositoryBase<Tenant>.FindAsync(Expression<Func<Tenant, bool>>, bool, CancellationToken)
RepositoryBase<Tenant>.GetAsync(Expression<Func<Tenant, bool>>, bool, CancellationToken)
RepositoryBase<Tenant>.DeleteAsync(Expression<Func<Tenant, bool>>, bool, CancellationToken)
RepositoryBase<Tenant>.DeleteDirectAsync(Expression<Func<Tenant, bool>>, CancellationToken)
RepositoryBase<Tenant>.ApplyDataFilters<TQueryable>(TQueryable)
RepositoryBase<Tenant>.ApplyDataFilters<TQueryable, TOtherEntity>(TQueryable)
BasicRepositoryBase<Tenant>.InsertAsync(Tenant, bool, CancellationToken)
BasicRepositoryBase<Tenant>.InsertManyAsync(IEnumerable<Tenant>, bool, CancellationToken)
BasicRepositoryBase<Tenant>.SaveChangesAsync(CancellationToken)
BasicRepositoryBase<Tenant>.UpdateAsync(Tenant, bool, CancellationToken)
BasicRepositoryBase<Tenant>.UpdateManyAsync(IEnumerable<Tenant>, bool, CancellationToken)
BasicRepositoryBase<Tenant>.DeleteAsync(Tenant, bool, CancellationToken)
BasicRepositoryBase<Tenant>.DeleteManyAsync(IEnumerable<Tenant>, bool, CancellationToken)
BasicRepositoryBase<Tenant>.GetListAsync(bool, CancellationToken)
BasicRepositoryBase<Tenant>.GetListAsync(Expression<Func<Tenant, bool>>, bool, CancellationToken)
BasicRepositoryBase<Tenant>.GetCountAsync(CancellationToken)
BasicRepositoryBase<Tenant>.GetPagedListAsync(int, int, string, bool, CancellationToken)
BasicRepositoryBase<Tenant>.GetCancellationToken(CancellationToken)
BasicRepositoryBase<Tenant>.ShouldTrackingEntityChange()
BasicRepositoryBase<Tenant>.LazyServiceProvider
BasicRepositoryBase<Tenant>.ServiceProvider
BasicRepositoryBase<Tenant>.DataFilter
BasicRepositoryBase<Tenant>.CurrentTenant
BasicRepositoryBase<Tenant>.AsyncExecuter
BasicRepositoryBase<Tenant>.UnitOfWorkManager
BasicRepositoryBase<Tenant>.CancellationTokenProvider
BasicRepositoryBase<Tenant>.LoggerFactory
BasicRepositoryBase<Tenant>.Logger
BasicRepositoryBase<Tenant>.EntityChangeTrackingProvider
BasicRepositoryBase<Tenant>.IsChangeTrackingEnabled
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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()

Implements

IServiceProviderAccessor
IUnitOfWorkEnabled
IUnitOfWorkManagerAccessor
IEfCoreRepository<TEntity, TKey>
IEfCoreRepository<TEntity>
IRepository<TEntity, TKey>
IRepository<TEntity>
IReadOnlyRepository<TEntity, TKey>
IReadOnlyRepository<TEntity>
IBasicRepository<TEntity, TKey>
ISupportsExplicitLoading<TEntity>
ITenantRepository
IBasicRepository<TEntity, TKey>
IBasicRepository<TEntity>
IReadOnlyBasicRepository<TEntity, TKey>
IReadOnlyBasicRepository<TEntity>
IRepository

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform