CommandDefinition Constructor |
Initialize the command definition
Namespace: DapperAssembly: VirtualRadar.Database (in VirtualRadar.Database.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public CommandDefinition(
string commandText,
Object parameters = null,
IDbTransaction transaction = null,
Nullable<int> commandTimeout = null,
Nullable<CommandType> commandType = null,
CommandFlags flags = CommandFlags.Buffered
)
Public Sub New (
commandText As String,
Optional parameters As Object = Nothing,
Optional transaction As IDbTransaction = Nothing,
Optional commandTimeout As Nullable(Of Integer) = Nothing,
Optional commandType As Nullable(Of CommandType) = Nothing,
Optional flags As CommandFlags = CommandFlags.Buffered
)
public:
CommandDefinition(
String^ commandText,
Object^ parameters = nullptr,
IDbTransaction^ transaction = nullptr,
Nullable<int> commandTimeout = nullptr,
Nullable<CommandType> commandType = nullptr,
CommandFlags flags = CommandFlags::Buffered
)
new :
commandText : string *
?parameters : Object *
?transaction : IDbTransaction *
?commandTimeout : Nullable<int> *
?commandType : Nullable<CommandType> *
?flags : CommandFlags
(* Defaults:
let _parameters = defaultArg parameters null
let _transaction = defaultArg transaction null
let _commandTimeout = defaultArg commandTimeout null
let _commandType = defaultArg commandType null
let _flags = defaultArg flags CommandFlags.Buffered
*)
-> CommandDefinition
Parameters
- commandText
- Type: SystemString
- parameters (Optional)
- Type: SystemObject
- transaction (Optional)
- Type: System.DataIDbTransaction
- commandTimeout (Optional)
- Type: SystemNullableInt32
- commandType (Optional)
- Type: SystemNullableCommandType
- flags (Optional)
- Type: DapperCommandFlags
See Also