Interface IReadableDataStore<T>
- Namespace
- Savvyio.Data
- Assembly
- Savvyio.Core.dll
Defines a generic way of abstracting readable data access objects (cRud).
public interface IReadableDataStore<T> : IDataStore<T> where T : class
Type Parameters
T
The 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
id
ObjectThe key that uniquely identifies the object.
setup
Action<AsyncOptions>The AsyncOptions which may be configured.
Returns
- Task<T>
A System.Threading.Tasks.Task<TResult> that represents the asynchronous operation. The task result either contains the object of the operation or
null
if not found.