C# Класс Realms.Transaction

Provides a scope to safely read and write to a Realm. Must use explicitly via Realm.BeginWrite.
All access to a Realm occurs within a Transaction. Read transactions are created implicitly.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

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

Use to save the changes to the realm. If Transaction is declared in a using block, must be used before the end of that block.

Dispose ( ) : void

Will automatically Rollback the transaction on existing scope, if not explicitly Committed.

Rollback ( ) : void

Use explicitly to undo the changes in a Transaction, otherwise it is automatically invoked by exiting the block.

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

Метод Описание
Transaction ( ) : System
Transaction ( Realm realm ) : System

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

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

Use to save the changes to the realm. If Transaction is declared in a using block, must be used before the end of that block.
public Commit ( ) : void
Результат void

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

Will automatically Rollback the transaction on existing scope, if not explicitly Committed.
public Dispose ( ) : void
Результат void

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

Use explicitly to undo the changes in a Transaction, otherwise it is automatically invoked by exiting the block.
public Rollback ( ) : void
Результат void