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

CompiledMaterializers..::..Compile<(Of <(<'TCommand, TParameter>)>)> Method (MultipleRowDbCommandBuilder<(Of <(<'TCommand, TParameter>)>)>)

Allows compilation of the ToObject and ToCollection materializer.

Namespace:  Tortuga.Chain
Assembly:  Tortuga.Chain.CompiledMaterializers (in Tortuga.Chain.CompiledMaterializers.dll)

Syntax


public static CompiledMultipleRow<TCommand, TParameter> Compile<TCommand, TParameter>(
	this MultipleRowDbCommandBuilder<TCommand, TParameter> commandBuilder
)
where TCommand : DbCommand, DbCommand, DbCommand
where TParameter : DbParameter, DbParameter, DbParameter
<ExtensionAttribute> _
Public Shared Function Compile(Of TCommand As {DbCommand, DbCommand, DbCommand}, TParameter As {DbParameter, DbParameter, DbParameter}) ( _
	commandBuilder As MultipleRowDbCommandBuilder(Of TCommand, TParameter) _
) As CompiledMultipleRow(Of TCommand, TParameter)
[ExtensionAttribute]
public:
generic<typename TCommand, typename TParameter>
where TCommand : DbCommand, DbCommand, DbCommand
where TParameter : DbParameter, DbParameter, DbParameter
static CompiledMultipleRow<TCommand, TParameter>^ Compile(
	MultipleRowDbCommandBuilder<TCommand, TParameter>^ commandBuilder
)

Type Parameters

TCommand
The type of the command.
TParameter
The type of the parameter.

Parameters

commandBuilder
Type: Tortuga.Chain.CommandBuilders..::..MultipleRowDbCommandBuilder<(Of <(<'TCommand, TParameter>)>)>
The command builder.

Return Value