public void Dispose(bool isDisposing) { if (!isDisposed) { if (isDisposing) { dbContext.Dispose(); } } isDisposed = true; }
protected virtual void Dispose(bool isDisposing) { if (!isDisposed) { if (isDisposing) { dbContext.Dispose(); } } isDisposed = true; }