| DbGetByKeyAsyncE, K Method |
Namespace: LiteRepositoryAssembly: LiteRepository (in LiteRepository.dll) Version: 2.0.4
Syntaxpublic virtual Task<E> GetByKeyAsync<E, K>(
K key,
Type type = null
)
where E : class, K
where K : class
Parameters
- key
- Type: K
Entity key. - type (Optional)
- Type: SystemType
Type which sets a subsets of the fields to retrive.
Type Parameters
- E
- Type of the entity.
- K
- Type of the entity key.
Return Value
Type:
TaskEA task representing the asynchronous operation.
See Also