Skip to main content

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
TypeName
System.Objectid
System.Threading.CancellationTokentoken
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
TypeName
System.Collections.ICollectionids
System.Threading.CancellationTokentoken
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
TypeName
<T>entity
System.Threading.CancellationTokentoken
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
TypeName
System.Collections.Generic.IEnumerable<<TEntity>>entities
System.Threading.CancellationTokentoken
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
TypeName
<T>entity
System.Threading.CancellationTokentoken
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
TypeName
System.Objectid
System.Threading.CancellationTokentoken
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
TypeName
System.Collections.ICollectionids
System.Threading.CancellationTokentoken
Type Parameters
  • T

DeleteAllAsync<TEntity>(CancellationToken)

View Source
Declaration
Task DeleteAllAsync<TEntity>(CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Threading.CancellationTokentoken
Type Parameters
  • TEntity