Table of Contents

Interface IKeyLookup<T, K>

Namespace
Tlabs.Data
Assembly
Tlabs.Data.dll

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 K
mustExist bool

Returns

T

Exceptions

DataEntityNotFoundException<T>

mustExist is true and no entity with given key