Beispiel #1
0
 public void Rollback()
 {
     _changesTracker.Clear();
     _entityQuads.Clear();
     if (_trackChanges)
     {
         foreach (var entityId in _initialQuads)
         {
             _entityQuads.Add(entityId.EntityId, _initialQuads[entityId.EntityId]);
         }
     }
 }
Beispiel #2
0
        public void ResetState()
        {
            if (_trackChanges)
            {
                _initialQuads.Clear();

                foreach (var entityId in _entityQuads)
                {
                    _initialQuads.Add(entityId.EntityId, _entityQuads[entityId.EntityId]);
                }
            }

            _changesTracker.Clear();
        }