private void Dispose(bool disposing) { if (disposing) { _dbContext.Dispose(); } // Free any unmanaged objects here. }
protected override void Dispose(bool disposing) { if (disposing) { _dbContext.Dispose(); } base.Dispose(disposing); }
protected virtual void Dispose(bool disposing) { if (!this.disposed && disposing) { _dbContext.Dispose(); } this.disposed = true; }
protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { context.Dispose(); } } this.disposed = true; }
public virtual void Dispose(bool disposing) { if (!_disposed) { if (disposing) { _context.Dispose(); } } _disposed = true; }
protected void Dispose(bool disposing) { if (!_disposed) { if (disposing) { if (_context != null) { _context.Dispose(); _context = null; } } } _disposed = true; }
public void Dispose() { _dbContext.Dispose(); }
public void Dispose() { _context.Dispose(); }
public void Dispose() => _context.Dispose();
public void Dispose() { Context?.Dispose(); }