internal bool Execute(Realm oldRealm, Realm newRealm) { OldRealm = oldRealm; NewRealm = newRealm; try { Configuration.MigrationCallback(this, oldRealm.Config.SchemaVersion); } catch (Exception e) { MigrationException = e; return(false); } finally { OldRealm.Dispose(); OldRealm = null; NewRealm.Dispose(); NewRealm = null; } return(true); }
public void Dispose() { Ensure.That(_realm.IsClosed).IsFalse(); if (IsTransaction) { _transaction.Commit(); _transaction.Dispose(); } _realm.Dispose(); }
public void Dispose() { ConfigureInstance(); _realm.Dispose(); }