SqlServerCommandExecutionToken Constructor
Initializes a new instance of the CommandExecutionToken<(Of <(<'TCommand, TParameter>)>)> class.
Namespace:
Tortuga.Chain.SqlServerAssembly: Tortuga.Chain.SqlServer.MDS (in Tortuga.Chain.SqlServer.MDS.dll)
Syntax
public SqlServerCommandExecutionToken( ICommandDataSource<SqlCommand, SqlParameter> dataSource, string operationName, string commandText, IReadOnlyList<SqlParameter> parameters, CommandType commandType )
Public Sub New ( _ dataSource As ICommandDataSource(Of SqlCommand, SqlParameter), _ operationName As String, _ commandText As String, _ parameters As IReadOnlyList(Of SqlParameter), _ commandType As CommandType _ )
public: SqlServerCommandExecutionToken( ICommandDataSource<SqlCommand^, SqlParameter^>^ dataSource, String^ operationName, String^ commandText, IReadOnlyList<SqlParameter^>^ parameters, CommandType^ commandType )
Parameters
- dataSource
- Type: Tortuga.Chain.DataSources..::..ICommandDataSource<(Of <(<'SqlCommand, SqlParameter>)>)>
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 <(<'SqlParameter>)>)>
The parameters.
- commandType
- Type: CommandType
Type of the command.