public virtual void Dispose(bool disposing) { if (!_disposed) { if (disposing) { _dbMain?.Dispose(); } _disposed = true; } }
public void Dispose() { _contextMain.Dispose(); }