Flexberry ORM 8.0.0-beta01
|
Асинхронная обёртка над DbConnection и DbTransaction. Подробнее...
Открытые члены | |
DbTransactionWrapperAsync (SQLDataService dataService) | |
Initializes a new instance of the DbTransactionWrapper class. Подробнее... | |
DbTransactionWrapperAsync (DbConnection connection, DbTransaction transaction=null) | |
Initializes a new instance of the DbTransactionWrapper class. Подробнее... | |
async Task< DbCommand > | CreateCommandAsync (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. Для защиты от This NpgsqlTransaction has completed; it is no longer usable. . Подробнее... | |
virtual void | RollbackTransaction () |
Rolls back a transaction from a pending state. FYI: does nothing if the transaction has not begun. Для защиты от This NpgsqlTransaction has completed; it is no longer usable. . Подробнее... | |
void | Dispose () |
async Task< DbTransaction > | GetTransactionAsync () |
Открыть соединение и получить транзакцию. Подробнее... | |
Свойства | |
DbConnection | Connection [get] |
Объект соединения, используемый обёрткой. Подробнее... | |
Асинхронная обёртка над DbConnection и DbTransaction.
|
inline |
Initializes a new instance of the DbTransactionWrapper class.
dataService | The instance of SQLDataService class. |
|
inline |
Initializes a new instance of the DbTransactionWrapper class.
connection | Объект соединения, который будет использоваться в обёртке. |
transaction | Транзакция. |
|
inlinevirtual |
Commits the database transaction. FYI: does nothing if the transaction has not begun. Для защиты от This NpgsqlTransaction has completed; it is no longer usable.
.
|
inline |
Creates and returns a Command object associated with the connection.
sql | The text command to execute. |
|
inline |
Открыть соединение и получить транзакцию.
Exception | Ошибка во время открытия соединения/создания транзакции. |
|
inlinevirtual |
Rolls back a transaction from a pending state. FYI: does nothing if the transaction has not begun. Для защиты от This NpgsqlTransaction has completed; it is no longer usable.
.
|
get |
Объект соединения, используемый обёрткой.