Class RepositoryBase<TEntity>
Inheritance
object
RepositoryBase<TEntity>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.Ddd.Domain.dll
Syntax
public abstract class RepositoryBase<TEntity> : BasicRepositoryBase<TEntity>, IServiceProviderAccessor, IUnitOfWorkEnabled, IRepository<TEntity>, IReadOnlyRepository<TEntity>, IBasicRepository<TEntity>, IReadOnlyBasicRepository<TEntity>, IRepository, IUnitOfWorkManagerAccessor where TEntity : class, IEntity
Type Parameters
Constructors
RepositoryBase()
Declaration
protected RepositoryBase()
Methods
ApplyDataFilters<TQueryable>(TQueryable)
Declaration
protected virtual TQueryable ApplyDataFilters<TQueryable>(TQueryable query) where TQueryable : IQueryable<TEntity>
Parameters
| Type |
Name |
Description |
| TQueryable |
query |
|
Returns
| Type |
Description |
| TQueryable |
|
Type Parameters
| Name |
Description |
| TQueryable |
|
ApplyDataFilters<TQueryable, TOtherEntity>(TQueryable)
Declaration
protected virtual TQueryable ApplyDataFilters<TQueryable, TOtherEntity>(TQueryable query) where TQueryable : IQueryable<TOtherEntity>
Parameters
| Type |
Name |
Description |
| TQueryable |
query |
|
Returns
| Type |
Description |
| TQueryable |
|
Type Parameters
| Name |
Description |
| TQueryable |
|
| TOtherEntity |
|
DeleteAsync(Expression<Func<TEntity, bool>>, bool, CancellationToken)
Declaration
public abstract Task DeleteAsync(Expression<Func<TEntity, bool>> predicate, bool autoSave = false, CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><TEntity, bool>> |
predicate |
|
| bool |
autoSave |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
FindAsync(Expression<Func<TEntity, bool>>, bool, CancellationToken)
Declaration
public abstract Task<TEntity> FindAsync(Expression<Func<TEntity, bool>> predicate, bool includeDetails = true, CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><TEntity, bool>> |
predicate |
|
| bool |
includeDetails |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><TEntity> |
|
GetAsync(Expression<Func<TEntity, bool>>, bool, CancellationToken)
Declaration
public Task<TEntity> GetAsync(Expression<Func<TEntity, bool>> predicate, bool includeDetails = true, CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><TEntity, bool>> |
predicate |
|
| bool |
includeDetails |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><TEntity> |
|
GetQueryable()
Declaration
[Obsolete("Use GetQueryableAsync method.")]
protected abstract IQueryable<TEntity> GetQueryable()
Returns
| Type |
Description |
| System.Linq.IQueryable<T><TEntity> |
|
GetQueryableAsync()
Declaration
public abstract Task<IQueryable<TEntity>> GetQueryableAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><System.Linq.IQueryable<T><TEntity>> |
|
WithDetails()
Declaration
[Obsolete("Use WithDetailsAsync method.")]
public virtual IQueryable<TEntity> WithDetails()
Returns
| Type |
Description |
| System.Linq.IQueryable<T><TEntity> |
|
WithDetails(params Expression<Func<TEntity, object>>[])
Declaration
[Obsolete("Use WithDetailsAsync method.")]
public virtual IQueryable<TEntity> WithDetails(params Expression<Func<TEntity, object>>[] propertySelectors)
Parameters
| Type |
Name |
Description |
| System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><TEntity, object>>[] |
propertySelectors |
|
Returns
| Type |
Description |
| System.Linq.IQueryable<T><TEntity> |
|
WithDetailsAsync()
Declaration
public virtual Task<IQueryable<TEntity>> WithDetailsAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><System.Linq.IQueryable<T><TEntity>> |
|
WithDetailsAsync(params Expression<Func<TEntity, object>>[])
Declaration
public virtual Task<IQueryable<TEntity>> WithDetailsAsync(params Expression<Func<TEntity, object>>[] propertySelectors)
Parameters
| Type |
Name |
Description |
| System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><TEntity, object>>[] |
propertySelectors |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><System.Linq.IQueryable<T><TEntity>> |
|
Implements
Extension Methods