private bool disposedValue = false; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (disposedValue) { return; } if (disposing) { Transaction?.Dispose(); Context.Dispose(); } disposedValue = true; }
public virtual void Dispose() { _context.Dispose(); }
public void Dispose() { _context.Dispose(); }