Realms.Transaction.Commit C# (CSharp) Méthode

Commit() public méthode

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
Résultat void
        public void Commit()
        {
            if (!_isOpen)
            {
                throw new Exception("Transaction was already closed. Cannot commit");
            }

            _realm.SharedRealmHandle.CommitTransaction();
            _isOpen = false;
        }
    }