protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
public void Dispose() { WorkContext.StopWorkRude(); //make sure cancellation token is at "cancel" state WorkContext.Dispose(); PrefetchingBehavior.Dispose(); TransactionalStorage.Dispose(); }
protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing && _context != null) { _context.Dispose(true); } disposedValue = true; } }
protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { _dbContext.Dispose(); } } this.disposed = true; }
public void Dispose() { WorkContext.Dispose(); PrefetchingBehavior.Dispose(); TransactionalStorage.Dispose(); }