CommitLastDictId() private method

private CommitLastDictId ( ulong newLastDictId, IKeyValueDBTransaction tr ) : void
newLastDictId ulong
tr IKeyValueDBTransaction
return void
Esempio n. 1
0
 public void Commit()
 {
     try
     {
         while (_dirtyObjSet != null)
         {
             var curObjsToStore = _dirtyObjSet;
             _dirtyObjSet = null;
             foreach (var o in curObjsToStore)
             {
                 StoreObject(o.Value);
             }
         }
         _owner.CommitLastDictId((ulong)_lastDictId, _keyValueTr);
         _keyValueTr.Commit();
         if (_updatedTables != null)
         {
             foreach (var updatedTable in _updatedTables)
             {
                 updatedTable.LastPersistedVersion = updatedTable.ClientTypeVersion;
                 updatedTable.ResetNeedStoreSingletonOid();
             }
         }
     }
     finally
     {
         Dispose();
     }
 }