Flexberry ORM 8.0.0-beta01
Класс ICSSoft.STORMNET.Business.DbTransactionWrapper

Обёртка над IDbConnection и IDbTransaction. Подробнее...

Граф наследования:ICSSoft.STORMNET.Business.DbTransactionWrapper:

Открытые члены

 DbTransactionWrapper (SQLDataService dataService)
 Initializes instance of DbTransactionWrapper. Подробнее...
 
 DbTransactionWrapper (IDbConnection connection, IDbTransaction transaction=null)
 Initializes a new instance of the DbTransactionWrapper class by IDbConnection and IDbTransaction. Подробнее...
 
virtual IDbCommand CreateCommand (string sql=null)
 Creates and returns a Command object associated with the connection. Подробнее...
 
virtual void CommitTransaction ()
 Commits the database transaction. FYI: does nothing if the transaction has not begun. Подробнее...
 
virtual void RollbackTransaction ()
 Rolls back a transaction from a pending state. FYI: does nothing if the transaction has not begun. Подробнее...
 
virtual void Dispose ()
 

Свойства

IDbConnection Connection [get]
 An object representing an open connection to a data source. Подробнее...
 
IDbTransaction Transaction [get]
 An object representing the transaction. Подробнее...
 

Подробное описание

Обёртка над IDbConnection и IDbTransaction.

Конструктор(ы)

◆ DbTransactionWrapper() [1/2]

ICSSoft.STORMNET.Business.DbTransactionWrapper.DbTransactionWrapper ( SQLDataService  dataService)
inline

Initializes instance of DbTransactionWrapper.

Аргументы
dataServiceThe instance of SQLDataService class.

◆ DbTransactionWrapper() [2/2]

ICSSoft.STORMNET.Business.DbTransactionWrapper.DbTransactionWrapper ( IDbConnection  connection,
IDbTransaction  transaction = null 
)
inline

Initializes a new instance of the DbTransactionWrapper class by IDbConnection and IDbTransaction.

Аргументы
connectionAn object representing an open connection to a data source.
transactionAn object representing the transaction.

Методы

◆ CommitTransaction()

virtual void ICSSoft.STORMNET.Business.DbTransactionWrapper.CommitTransaction ( )
inlinevirtual

Commits the database transaction. FYI: does nothing if the transaction has not begun.

◆ CreateCommand()

virtual IDbCommand ICSSoft.STORMNET.Business.DbTransactionWrapper.CreateCommand ( string  sql = null)
inlinevirtual

Creates and returns a Command object associated with the connection.

Аргументы
sqlThe text command to execute.
Возвращает
A Command object associated with the connection.

◆ RollbackTransaction()

virtual void ICSSoft.STORMNET.Business.DbTransactionWrapper.RollbackTransaction ( )
inlinevirtual

Rolls back a transaction from a pending state. FYI: does nothing if the transaction has not begun.

Полный список свойств

◆ Connection

IDbConnection ICSSoft.STORMNET.Business.DbTransactionWrapper.Connection
get

An object representing an open connection to a data source.

◆ Transaction

IDbTransaction ICSSoft.STORMNET.Business.DbTransactionWrapper.Transaction
get

An object representing the transaction.