public void DeleteRange(IEnumerable <int> ids)
        {
            var predictionSchedules = _dbContext.Query <PredictionSchedule>()
                                      .Where(x => ids.Contains(x.Id))
                                      .ToArray();

            if (predictionSchedules.Any())
            {
                _dbContext.RemoveRange(predictionSchedules);
            }
        }
Esempio n. 2
0
 public virtual void DeleteAll() => _dbContext.RemoveRange(_dbContext.Query <TenantSettingsEntity>().ToArray());