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

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

Allows compilation of the ToObject materializer.

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

Syntax


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

Type Parameters

TCommand
The type of the command.
TParameter
The type of the parameter.
TObject
The type of the object to be constructed.

Parameters

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

Return Value