Interface IReadableDataStore<T>
Defines a generic way of abstracting readable data access objects (cRud).
public interface IReadableDataStore<T> : IDataStore<T> where T : class
Type Parameters
TThe type of the DTO.
Methods
GetByIdAsync(object, Action<AsyncOptions>)
Loads the object from the specified id asynchronous.
Task<T> GetByIdAsync(object id, Action<AsyncOptions> setup = null)
Parameters
idobjectThe key that uniquely identifies the object.
setupAction<AsyncOptions>The AsyncOptions which may be configured.
Returns
- Task<T>
A Task<TResult> that represents the asynchronous operation. The task result either contains the object of the operation or
nullif not found.