MultipleRowDbCommandBuilder<(Of <(<'TCommand, TParameter>)>)>..::..ToDictionary<(Of <(<'TKey, TObject, TDictionary>)>)> 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
public IConstructibleMaterializer<TDictionary> ToDictionary<TKey, TObject, TDictionary>( Func<TObject, TKey> keyFunction, DictionaryOptions dictionaryOptions ) where TDictionary : IDictionary<TKey, TObject>, IDictionary<TKey, TObject>
Public Function ToDictionary(Of TKey, TObject, TDictionary As {IDictionary(Of TKey, TObject), IDictionary(Of TKey, TObject)}) ( _ keyFunction As Func(Of TObject, TKey), _ dictionaryOptions As DictionaryOptions _ ) As IConstructibleMaterializer(Of TDictionary)
public: generic<typename TKey, typename TObject, typename TDictionary> where TDictionary : IDictionary<TKey, TObject>, IDictionary<TKey, TObject> IConstructibleMaterializer<TDictionary>^ ToDictionary( Func<TObject, TKey>^ keyFunction, DictionaryOptions^ dictionaryOptions )
Type Parameters
- TKey
- The type of the key.
- TObject
- The type of the model.
- TDictionary
- The type of dictionary.
Parameters
- keyFunction
- Type: Func<(Of <(<'TObject, TKey>)>)>
The key function.
- dictionaryOptions
- Type: Tortuga.Chain..::..DictionaryOptions
The dictionary options.