Realm Xamarin  v0.78.0
Realm for Xamarin
Public Member Functions | List of all members
Transaction Class Reference

Provides a scope to safely read and write to a Realm. Must use explicitly via Realm.BeginWrite. More...

Inherits IDisposable.

Public Member Functions

void 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. More...
 
void Dispose ()
 Will automatically Rollback the transaction on existing scope, if not explicitly Committed. More...
 
void Rollback ()
 Use explicitly to undo the changes in a transaction, otherwise it is automatically invoked by exiting the block. More...
 

Detailed Description

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.

Member Function Documentation

§ Commit()

void 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.

Referenced by Transaction.Dispose().

§ Dispose()

void Dispose ( )

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

References Transaction.Commit(), and Transaction.Rollback().

§ Rollback()

void Rollback ( )

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

Referenced by Transaction.Dispose().