Class RepositoryRegistration_Tests.MyTestDefaultRepository<TEntity>
Inheritance
object
BasicRepositoryBase<TEntity>
RepositoryBase<TEntity>
RepositoryRegistration_Tests.MyTestDefaultRepository<TEntity>
Implements
IRepository<TEntity>
IReadOnlyRepository<TEntity>
IBasicRepository<TEntity>
IReadOnlyBasicRepository<TEntity>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Domain.Repositories
Assembly: Volo.Abp.Ddd.Tests.dll
Syntax
public class RepositoryRegistration_Tests.MyTestDefaultRepository<TEntity> : RepositoryBase<TEntity>, IServiceProviderAccessor, IUnitOfWorkEnabled, IRepository<TEntity>, IReadOnlyRepository<TEntity>, IBasicRepository<TEntity>, IReadOnlyBasicRepository<TEntity>, IRepository, IUnitOfWorkManagerAccessor where TEntity : class, IEntity
Type Parameters
| Name | Description |
|---|---|
| TEntity |
Constructors
MyTestDefaultRepository()
Declaration
public MyTestDefaultRepository()
Methods
DeleteAsync(TEntity, bool, CancellationToken)
Declaration
public override Task DeleteAsync(TEntity entity, bool autoSave = false, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TEntity | entity | |
| bool | autoSave | |
| System.Threading.CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
Overrides
Volo.Abp.Domain.Repositories.BasicRepositoryBase<TEntity>.DeleteAsync(TEntity, bool, System.Threading.CancellationToken)
DeleteAsync(Expression<Func<TEntity, bool>>, bool, CancellationToken)
Declaration
public override 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 |
Overrides
Volo.Abp.Domain.Repositories.RepositoryBase<TEntity>.DeleteAsync(System.Linq.Expressions.Expression<System.Func<TEntity, bool>>, bool, System.Threading.CancellationToken)
FindAsync(Expression<Func<TEntity, bool>>, bool, CancellationToken)
Declaration
public override 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> |
Overrides
Volo.Abp.Domain.Repositories.RepositoryBase<TEntity>.FindAsync(System.Linq.Expressions.Expression<System.Func<TEntity, bool>>, bool, System.Threading.CancellationToken)
GetCountAsync(CancellationToken)
Declaration
public override Task<long> GetCountAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Threading.CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><long> |
Overrides
Volo.Abp.Domain.Repositories.BasicRepositoryBase<TEntity>.GetCountAsync(System.Threading.CancellationToken)
GetListAsync(bool, CancellationToken)
Declaration
public override Task<List<TEntity>> GetListAsync(bool includeDetails = false, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | includeDetails | |
| System.Threading.CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><System.Collections.Generic.List<T><TEntity>> |
Overrides
Volo.Abp.Domain.Repositories.BasicRepositoryBase<TEntity>.GetListAsync(bool, System.Threading.CancellationToken)
GetListAsync(Expression<Func<TEntity, bool>>, bool, CancellationToken)
Declaration
public override Task<List<TEntity>> GetListAsync(Expression<Func<TEntity, bool>> predicate, bool includeDetails = false, 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><System.Collections.Generic.List<T><TEntity>> |
Overrides
Volo.Abp.Domain.Repositories.BasicRepositoryBase<TEntity>.GetListAsync(System.Linq.Expressions.Expression<System.Func<TEntity, bool>>, bool, System.Threading.CancellationToken)
GetPagedListAsync(int, int, string, bool, CancellationToken)
Declaration
public override Task<List<TEntity>> GetPagedListAsync(int skipCount, int maxResultCount, string sorting, bool includeDetails = false, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | skipCount | |
| int | maxResultCount | |
| string | sorting | |
| bool | includeDetails | |
| System.Threading.CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><System.Collections.Generic.List<T><TEntity>> |
Overrides
Volo.Abp.Domain.Repositories.BasicRepositoryBase<TEntity>.GetPagedListAsync(int, int, string, bool, System.Threading.CancellationToken)
GetQueryable()
Declaration
[Obsolete("Use GetQueryableAsync method.")]
protected override IQueryable<TEntity> GetQueryable()
Returns
| Type | Description |
|---|---|
| System.Linq.IQueryable<T><TEntity> |
Overrides
Volo.Abp.Domain.Repositories.RepositoryBase<TEntity>.GetQueryable()
GetQueryableAsync()
Declaration
public override Task<IQueryable<TEntity>> GetQueryableAsync()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><System.Linq.IQueryable<T><TEntity>> |
Overrides
Volo.Abp.Domain.Repositories.RepositoryBase<TEntity>.GetQueryableAsync()
InsertAsync(TEntity, bool, CancellationToken)
Declaration
public override Task<TEntity> InsertAsync(TEntity entity, bool autoSave = false, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TEntity | entity | |
| bool | autoSave | |
| System.Threading.CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><TEntity> |
Overrides
Volo.Abp.Domain.Repositories.BasicRepositoryBase<TEntity>.InsertAsync(TEntity, bool, System.Threading.CancellationToken)
UpdateAsync(TEntity, bool, CancellationToken)
Declaration
public override Task<TEntity> UpdateAsync(TEntity entity, bool autoSave = false, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TEntity | entity | |
| bool | autoSave | |
| System.Threading.CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><TEntity> |
Overrides
Volo.Abp.Domain.Repositories.BasicRepositoryBase<TEntity>.UpdateAsync(TEntity, bool, System.Threading.CancellationToken)