public void CommitAndRefreshChanges()
        {
            Commit();

            ChangeTracker.Dispose();

            ChangeTracker = CreateChangeTracker();
        }
        protected virtual void Dispose(bool disposing)
        {
            // Check to see if Dispose has already been called.
            if (!this._disposed)
            {
                // If disposing equals true, dispose all managed
                // and unmanaged resources.
                if (disposing)
                {
                    ChangeTracker.Dispose();
                }

                // Call the appropriate methods to clean up
                // unmanaged resources here.
                // If disposing is false,
                // only the following code is executed.

                // Note disposing has been done.
                _disposed = true;
            }
        }
Beispiel #3
0
 public void RollbackChanges()
 {
     ChangeTracker.Dispose();
     ChangeTracker = CreateChangeTracker();
 }