Skip to main content

OrmLiteCommand

Assembly: ServiceStack.OrmLite.dll
View Source
Declaration
public class OrmLiteCommand : IDbCommand, IHasDbCommand, IHasDialectProvider

Properties

DialectProvider

View Source
Declaration
public IOrmLiteDialectProvider DialectProvider { get; set; }

IsDisposed

View Source
Declaration
public bool IsDisposed { get; }

ConnectionId

View Source
Declaration
public Guid ConnectionId { get; }

Connection

View Source
Declaration
public IDbConnection Connection { get; set; }

Transaction

View Source
Declaration
public IDbTransaction Transaction { get; set; }

CommandText

View Source
Declaration
public string CommandText { get; set; }

CommandTimeout

View Source
Declaration
public int CommandTimeout { get; set; }

CommandType

View Source
Declaration
public CommandType CommandType { get; set; }

Parameters

View Source
Declaration
public IDataParameterCollection Parameters { get; }

UpdatedRowSource

View Source
Declaration
public UpdateRowSource UpdatedRowSource { get; set; }

DbCommand

View Source
Declaration
public IDbCommand DbCommand { get; }

Methods

Dispose()

View Source
Declaration
public void Dispose()

Prepare()

View Source
Declaration
public void Prepare()

Cancel()

View Source
Declaration
public void Cancel()

CreateParameter()

View Source
Declaration
public IDbDataParameter CreateParameter()
Returns

IDbDataParameter

ExecuteNonQuery()

View Source
Declaration
public int ExecuteNonQuery()
Returns

System.Int32

ExecuteReader()

View Source
Declaration
public IDataReader ExecuteReader()
Returns

IDataReader

ExecuteReader(CommandBehavior)

View Source
Declaration
public IDataReader ExecuteReader(CommandBehavior behavior)
Returns

IDataReader

Parameters
TypeName
CommandBehaviorbehavior

ExecuteScalar()

View Source
Declaration
public object ExecuteScalar()
Returns

System.Object

Implements