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

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

Allows compilation of the ToObject materializer.

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

Syntax


public static CompiledSingleRow<TCommand, TParameter> Compile<TCommand, TParameter>(
	this SingleRowDbCommandBuilder<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 SingleRowDbCommandBuilder(Of TCommand, TParameter) _
) As CompiledSingleRow(Of TCommand, TParameter)
[ExtensionAttribute]
public:
generic<typename TCommand, typename TParameter>
where TCommand : DbCommand, DbCommand, DbCommand
where TParameter : DbParameter, DbParameter, DbParameter
static CompiledSingleRow<TCommand, TParameter>^ Compile(
	SingleRowDbCommandBuilder<TCommand, TParameter>^ commandBuilder
)

Type Parameters

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

Parameters

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

Return Value