Class RepositoryRegistration_Tests.MyTestDefaultRepository<TEntity, TKey>
Inheritance
object
BasicRepositoryBase<TEntity>
RepositoryBase<TEntity>
RepositoryRegistration_Tests.MyTestDefaultRepository<TEntity, TKey>
Implements
IRepository<TEntity, TKey>
IRepository<TEntity>
IReadOnlyRepository<TEntity, TKey>
IReadOnlyRepository<TEntity>
IBasicRepository<TEntity, TKey>
IBasicRepository<TEntity>
IReadOnlyBasicRepository<TEntity, TKey>
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, TKey> : RepositoryRegistration_Tests.MyTestDefaultRepository<TEntity>, IServiceProviderAccessor, IUnitOfWorkEnabled, IUnitOfWorkManagerAccessor, IRepository<TEntity, TKey>, IRepository<TEntity>, IReadOnlyRepository<TEntity, TKey>, IReadOnlyRepository<TEntity>, IBasicRepository<TEntity, TKey>, IBasicRepository<TEntity>, IReadOnlyBasicRepository<TEntity, TKey>, IReadOnlyBasicRepository<TEntity>, IRepository where TEntity : class, IEntity<TKey>
Type Parameters
| Name | Description |
|---|---|
| TEntity | |
| TKey |
Constructors
MyTestDefaultRepository()
Declaration
public MyTestDefaultRepository()
Methods
DeleteAsync(TKey, bool, CancellationToken)
Declaration
public Task DeleteAsync(TKey id, bool autoSave = false, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | id | |
| bool | autoSave | |
| System.Threading.CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
DeleteManyAsync(IEnumerable<TKey>, bool, CancellationToken)
Declaration
public Task DeleteManyAsync(IEnumerable<TKey> ids, bool autoSave = false, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<T><TKey> | ids | |
| bool | autoSave | |
| System.Threading.CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
FindAsync(TKey, bool, CancellationToken)
Declaration
public Task<TEntity> FindAsync(TKey id, bool includeDetails = true, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | id | |
| bool | includeDetails | |
| System.Threading.CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><TEntity> |
GetAsync(TKey, bool, CancellationToken)
Declaration
public Task<TEntity> GetAsync(TKey id, bool includeDetails = true, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | id | |
| bool | includeDetails | |
| System.Threading.CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><TEntity> |