Realm Xamarin  v0.81.0
Realm for Xamarin
Public Member Functions | List of all members
Realms.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 Realms.Transaction.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 Realms.Transaction.Dispose().

§ Dispose()

void Realms.Transaction.Dispose ( )

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

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

§ Rollback()

void Realms.Transaction.Rollback ( )

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

Referenced by Realms.Transaction.Dispose().