MultipleRowDbCommandBuilder<(Of <(<'TCommand, TParameter>)>)>..::..ToDictionary<(Of <(<'TKey, TObject>)>)> Method (String, DictionaryOptions)
Materializes the result as a dictionary of objects.
Namespace:
Tortuga.Chain.CommandBuildersAssembly: Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)
Syntax
public IConstructibleMaterializer<Dictionary<TKey, TObject>> ToDictionary<TKey, TObject>( string keyColumn, DictionaryOptions dictionaryOptions )
Public Function ToDictionary(Of TKey, TObject) ( _ keyColumn As String, _ dictionaryOptions As DictionaryOptions _ ) As IConstructibleMaterializer(Of Dictionary(Of TKey, TObject))
public: generic<typename TKey, typename TObject> IConstructibleMaterializer<Dictionary<TKey, TObject>^>^ ToDictionary( String^ keyColumn, DictionaryOptions^ dictionaryOptions )
Type Parameters
- TKey
- The type of the key.
- TObject
- The type of the model.
Parameters
- keyColumn
- Type: String
The key column.
- dictionaryOptions
- Type: Tortuga.Chain..::..DictionaryOptions
The dictionary options.