public void DeleteRange(IEnumerable <int> ids) { var predictionSchedules = _dbContext.Query <PredictionSchedule>() .Where(x => ids.Contains(x.Id)) .ToArray(); if (predictionSchedules.Any()) { _dbContext.RemoveRange(predictionSchedules); } }
public virtual void DeleteAll() => _dbContext.RemoveRange(_dbContext.Query <TenantSettingsEntity>().ToArray());