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

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

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, TObject> Compile<TCommand, TParameter, TLimit, TObject>(
	this TableDbCommandBuilder<TCommand, TParameter, TLimit, TObject> commandBuilder
)
where TCommand : DbCommand
where TParameter : DbParameter
<ExtensionAttribute> _
Public Shared Function Compile(Of TCommand As DbCommand, TParameter As DbParameter, TLimit, TObject) ( _
	commandBuilder As TableDbCommandBuilder(Of TCommand, TParameter, TLimit, TObject) _
) As CompiledMultipleRow(Of TCommand, TParameter, TObject)
[ExtensionAttribute]
public:
generic<typename TCommand, typename TParameter, typename TLimit, typename TObject>
where TCommand : DbCommand
where TParameter : DbParameter
static CompiledMultipleRow<TCommand, TParameter, TObject>^ Compile(
	TableDbCommandBuilder<TCommand, TParameter, TLimit, TObject>^ commandBuilder
)

Type Parameters

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

Parameters

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