C# Класс Upscaledb.Transaction

A Transaction class
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Abort ( ) : void

Aborts the Transaction if it has not already been committed or aborted.

This method wraps the native ups_txn_abort function.
Note that the function will fail with UPS_CURSOR_STILL_OPEN if a Cursor was attached to this Transaction, and the Cursor was not closed.

Commit ( ) : void

Commits the Transaction

This method wraps the native ups_txn_commit function.
Note that the function will fail with UPS_CURSOR_STILL_OPEN if a Cursor was attached to this Transaction, and the Cursor was not closed.

Dispose ( ) : void

Aborts the Transaction if it has not already been committed or aborted.

Приватные методы

Метод Описание
Transaction ( Environment env, IntPtr handle ) : System

Описание методов

Abort() публичный Метод

Aborts the Transaction if it has not already been committed or aborted.
This method wraps the native ups_txn_abort function.
Note that the function will fail with UPS_CURSOR_STILL_OPEN if a Cursor was attached to this Transaction, and the Cursor was not closed.
public Abort ( ) : void
Результат void

Commit() публичный Метод

Commits the Transaction
This method wraps the native ups_txn_commit function.
Note that the function will fail with UPS_CURSOR_STILL_OPEN if a Cursor was attached to this Transaction, and the Cursor was not closed.
public Commit ( ) : void
Результат void

Dispose() публичный Метод

Aborts the Transaction if it has not already been committed or aborted.
public Dispose ( ) : void
Результат void