IMultipleRowDbCommandBuilder<(Of <(<'TObject>)>)>..::..ToDictionary<(Of <(<'TKey>)>)> Method (Func<(Of <(<'TObject, TKey>)>)>, DictionaryOptions)
Materializes the result as a dictionary of objects.
Namespace:
Tortuga.Chain.CommandBuildersAssembly: Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)
Syntax
IConstructibleMaterializer<Dictionary<TKey, TObject>> ToDictionary<TKey>( Func<TObject, TKey> keyFunction, DictionaryOptions dictionaryOptions )
Function ToDictionary(Of TKey) ( _ keyFunction As Func(Of TObject, TKey), _ dictionaryOptions As DictionaryOptions _ ) As IConstructibleMaterializer(Of Dictionary(Of TKey, TObject))
generic<typename TKey> IConstructibleMaterializer<Dictionary<TKey, TObject>^>^ ToDictionary( Func<TObject, TKey>^ keyFunction, DictionaryOptions^ dictionaryOptions )
Type Parameters
- TKey
- The type of the key.
Parameters
- keyFunction
- Type: Func<(Of <(<'TObject, TKey>)>)>
The key function.
- dictionaryOptions
- Type: Tortuga.Chain..::..DictionaryOptions
The dictionary options.