Interface IStoreBatchWriterAsync
Asynchronous batch write abstraction for Stores.
Inherited Members
Namespace: Ease.Repository
Assembly: Ease.Repository.dll
Syntax
public interface IStoreBatchWriterAsync : IStoreWriterAsync, IStoreWriter
Methods
| Improve this Doc View SourceAddAsync<TEntity>(IEnumerable<TEntity>)
Add the new entities to the store.
Declaration
Task AddAsync<TEntity>(IEnumerable<TEntity> entities)
where TEntity : class, new()
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<TEntity> | entities | The entities to add |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
Type Parameters
| Name | Description |
|---|---|
| TEntity | The entity Type |
DeleteAsync<TEntity>(IEnumerable<TEntity>)
Delete the entities from the store.
Declaration
Task DeleteAsync<TEntity>(IEnumerable<TEntity> entities)
where TEntity : class, new()
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<TEntity> | entities | The entities to delete |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
Type Parameters
| Name | Description |
|---|---|
| TEntity | The entity Type |
UpdateAsync<TEntity>(IEnumerable<TEntity>)
Update the entities in the store.
Declaration
Task UpdateAsync<TEntity>(IEnumerable<TEntity> entities)
where TEntity : class, new()
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<TEntity> | entities | The entities to update |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
Type Parameters
| Name | Description |
|---|---|
| TEntity | Tye entity Type |