public void Dispose() { if (!disposedValue) { if (_dbContext != null) { _dbContext.Dispose(); _dbContext = null; } disposedValue = true; } }
private void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { if (_dbContext != null) { _dbContext.Dispose(); _dbContext = null; } } disposedValue = true; } }