GetByIdAsync Method
Definition
- Assemblies
- Savvyio.Core.dll
GetByIdAsync(TKey, Action<AsyncOptions>)
Loads the entity from the specified id asynchronous.
Task<TEntity> GetByIdAsync(TKey id, Action<AsyncOptions> setup = null)
Parameters
idTKeyThe key that uniquely identifies the entity.
setupAction<AsyncOptions>The AsyncOptions which may be configured.
Returns
- Task<TEntity>
A Task<TResult> that represents the asynchronous operation. The task result either contains the entity of the operation or
nullif not found.