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

CommandExecutionToken<(Of <(<'TCommand, TParameter>)>)> Constructor

Initializes a new instance of the CommandExecutionToken<(Of <(<'TCommand, TParameter>)>)> class.

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

Syntax


public CommandExecutionToken(
	ICommandDataSource<TCommand, TParameter> dataSource,
	string operationName,
	string commandText,
	IReadOnlyList<TParameter> parameters,
	CommandType commandType
)
Public Sub New ( _
	dataSource As ICommandDataSource(Of TCommand, TParameter), _
	operationName As String, _
	commandText As String, _
	parameters As IReadOnlyList(Of TParameter), _
	commandType As CommandType _
)
public:
CommandExecutionToken(
	ICommandDataSource<TCommand, TParameter>^ dataSource, 
	String^ operationName, 
	String^ commandText, 
	IReadOnlyList<TParameter>^ parameters, 
	CommandType^ commandType
)

Parameters

dataSource
Type: Tortuga.Chain.DataSources..::..ICommandDataSource<(Of <(<'TCommand, TParameter>)>)>
The data source.
operationName
Type: String
Name of the operation. This is used for logging.
commandText
Type: String
The SQL to be executed.
parameters
Type: IReadOnlyList<(Of <(<'TParameter>)>)>
The parameters.
commandType
Type: CommandType
Type of the command.