Interface IKeyLookup<T, K>
Interface of a look up by key repository.
public interface IKeyLookup<T, K> where T : class, new()
Type Parameters
T
K
- Extension Methods
Methods
GetByKey(K, bool)
Return T
with key
(and optional mustExist
flag).
T? GetByKey(K key, bool mustExist = false)
Parameters
key
KmustExist
bool
Returns
- T
Exceptions
- DataEntityNotFoundException<T>
mustExist
is true and no entity with givenkey