Interface IBasicRepository<TEntity, TKey>
Assembly: Volo.Abp.Ddd.Domain.dll
Syntax
public interface IBasicRepository<TEntity, TKey> : IBasicRepository<TEntity>, IReadOnlyBasicRepository<TEntity, TKey>, IReadOnlyBasicRepository<TEntity>, IRepository where TEntity : class, IEntity<TKey>
Type Parameters
| Name |
Description |
| TEntity |
|
| TKey |
|
Methods
DeleteAsync(TKey, bool, CancellationToken)
Declaration
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
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 |
|
Extension Methods