Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.Metadata Namespace

MultipleRowDbCommandBuilder<(Of <(<'TCommand, TParameter>)>)>..::..ToDictionary<(Of <(<'TKey, TObject, TDictionary>)>)> Method (String, DictionaryOptions)

Materializes the result as a dictionary of objects.

Namespace:  Tortuga.Chain.CommandBuilders
Assembly:  Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)

Syntax


public IConstructibleMaterializer<TDictionary> ToDictionary<TKey, TObject, TDictionary>(
	string keyColumn,
	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)}) ( _
	keyColumn As String, _
	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(
	String^ keyColumn, 
	DictionaryOptions^ dictionaryOptions
)

Type Parameters

TKey
The type of the key.
TObject
The type of the model.
TDictionary
The type of dictionary.

Parameters

keyColumn
Type: String
dictionaryOptions
Type: Tortuga.Chain..::..DictionaryOptions

Return Value