Skip to main content

CommandDefinition

Represents the key aspects of a sql operation

Assembly: ServiceStack.OrmLite.dll​
View Source​
Declaration
public struct CommandDefinition

Properties​

CommandText​

The command (sql or a stored-procedure name) to execute

View Source​
Declaration
public readonly string CommandText { get; }

Parameters​

The parameters associated with the command

View Source​
Declaration
public readonly object Parameters { get; }

Transaction​

The active transaction for the command

View Source​
Declaration
public readonly IDbTransaction Transaction { get; }

CommandTimeout​

The effective timeout for the command

View Source​
Declaration
public readonly int? CommandTimeout { get; }

CommandType​

The type of command that the command-text represents

View Source​
Declaration
public readonly CommandType? CommandType { get; }

Buffered​

Should data be buffered before returning?

View Source​
Declaration
public readonly bool Buffered { get; }

Flags​

Additional state flags against this command

View Source​
Declaration
public readonly CommandFlags Flags { get; }

Pipelined​

Can async queries be pipelined?

View Source​
Declaration
public readonly bool Pipelined { get; }

CancellationToken​

For asynchronous operations, the cancellation-token

View Source​
Declaration
public readonly CancellationToken CancellationToken { get; }