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