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

MultipleRowDbCommandBuilder<(Of <(<'TCommand, TParameter, TObject>)>)>..::..ToDictionary<(Of <(<'TKey>)>)> 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<Dictionary<TKey, TObject>> ToDictionary<TKey>(
	string keyColumn,
	DictionaryOptions dictionaryOptions
)
Public Function ToDictionary(Of TKey) ( _
	keyColumn As String, _
	dictionaryOptions As DictionaryOptions _
) As IConstructibleMaterializer(Of Dictionary(Of TKey, TObject))
public:
generic<typename TKey>
IConstructibleMaterializer<Dictionary<TKey, TObject>^>^ ToDictionary(
	String^ keyColumn, 
	DictionaryOptions^ dictionaryOptions
)

Type Parameters

TKey
The type of the key.

Parameters

keyColumn
Type: String
The key column.
dictionaryOptions
Type: Tortuga.Chain..::..DictionaryOptions
The dictionary options.

Return Value

IConstructibleMaterializer<Dictionary<TKey, TObject>>.