IEntityStoreAsync
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IEntityStoreAsync
Methods
GetByIdAsync<T>(Object, CancellationToken)
View Source
Declaration
Task<T> GetByIdAsync<T>(object id, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<T>>
Parameters
Type | Name |
---|---|
System.Object | id |
System.Threading.CancellationToken | token |
Type Parameters
T
GetByIdsAsync<T>(ICollection, CancellationToken)
View Source
Declaration
Task<IList<T>> GetByIdsAsync<T>(ICollection ids, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IList<<T>>>
Parameters
Type | Name |
---|---|
System.Collections.ICollection | ids |
System.Threading.CancellationToken | token |
Type Parameters
T
StoreAsync<T>(T, CancellationToken)
View Source
Declaration
Task<T> StoreAsync<T>(T entity, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<T>>
Parameters
Type | Name |
---|---|
<T> | entity |
System.Threading.CancellationToken | token |
Type Parameters
T
StoreAllAsync<TEntity>(IEnumerable<TEntity>, CancellationToken)
View Source
Declaration
Task StoreAllAsync<TEntity>(IEnumerable<TEntity> entities, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<<TEntity>> | entities |
System.Threading.CancellationToken | token |
Type Parameters
TEntity
DeleteAsync<T>(T, CancellationToken)
View Source
Declaration
Task DeleteAsync<T>(T entity, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
<T> | entity |
System.Threading.CancellationToken | token |
Type Parameters
T
DeleteByIdAsync<T>(Object, CancellationToken)
View Source
Declaration
Task DeleteByIdAsync<T>(object id, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Object | id |
System.Threading.CancellationToken | token |
Type Parameters
T
DeleteByIdsAsync<T>(ICollection, CancellationToken)
View Source
Declaration
Task DeleteByIdsAsync<T>(ICollection ids, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Collections.ICollection | ids |
System.Threading.CancellationToken | token |
Type Parameters
T
DeleteAllAsync<TEntity>(CancellationToken)
View Source
Declaration
Task DeleteAllAsync<TEntity>(CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
Type Parameters
TEntity