Click or drag to resize

StorageTStorageEntity, TKey, TValueGetByIdWithKey Method

Get a single entity T as a KeyValuePair TK,T with the key TK

Namespace:  Crosser.Common.Utilities.Persistence
Assembly:  Crosser.Common (in Crosser.Common.dll) Version: 0.0.4
Syntax
C#
public KeyValuePair<TKey, TValue> GetByIdWithKey(
	TKey key
)

Parameters

key
Type: TKey
the generic key used to lookup the entity

Return Value

Type: KeyValuePairTKey, TValue
The key and value of the found entity. Or if there was no match the key is returned with the default value of TValue
See Also