public virtual void Dispose(bool disposing) { if (!_disposed && disposing) { _context.Dispose(); } _disposed = true; }
protected override void Dispose(bool disposing) { if (disposing) { fNavman.Dispose(); fContext.Dispose(); } base.Dispose(disposing); }
private void Clear(bool disposing) { if (!_disposed) { if (disposing) { _context.Dispose(); } } _disposed = true; }
protected virtual void Dispose(bool pBolDisposing) { if (pBolDisposing) { if (mObjContext != null) { mObjContext.Dispose(); mObjContext = null; } } }
public virtual void Dispose(bool disposing) { if (!_disposed && disposing) { _baseContext.Dispose(); foreach (IDisposable repository in _repositories.Values) { repository.Dispose();// dispose all repositries } } _disposed = true; }
public void Dispose() { DbSet = null; Context.Dispose(); GC.SuppressFinalize(this); }
public void Dispose() { _context?.Dispose(); }