public void DeleteAll()
        {
            var providerRegistrationFeedbackRatings = _dataContext.ProviderRegistrationFeedbackRatings.ToList();

            _dataContext.ProviderRegistrationFeedbackRatings.RemoveRange(providerRegistrationFeedbackRatings);
            _dataContext.SaveChanges();
        }
Esempio n. 2
0
        public async Task Insert(Shortlist item)
        {
            try
            {
                await _dataContext.Shortlists.AddAsync(item);

                _dataContext.SaveChanges();
            }
            catch (DbUpdateException e)
            {
                _logger.LogInformation(e, "Unable to add shortlist item");
            }
        }
 public void DeleteAll()
 {
     _dataContext.ProviderStandardLocationImports.RemoveRange(_dataContext.ProviderStandardLocationImports);
     _dataContext.SaveChanges();
 }
Esempio n. 4
0
        public async Task InsertMany(IEnumerable <ProviderImport> providerImports)
        {
            await _dataContext.ProviderImports.AddRangeAsync(providerImports);

            _dataContext.SaveChanges();
        }
        public async Task InsertMany(IEnumerable <StandardLocationImport> items)
        {
            await _dataContext.StandardLocationImports.AddRangeAsync(items);

            _dataContext.SaveChanges();
        }
Esempio n. 6
0
 public void DeleteAll()
 {
     _dataContext.ProviderRegistrationFeedbackRatingImports.RemoveRange(_dataContext.ProviderRegistrationFeedbackRatingImports.ToList());
     _dataContext.SaveChanges();
 }
 public void DeleteAll()
 {
     _dataContext.NationalAchievementRates.RemoveRange(_dataContext.NationalAchievementRates);
     _dataContext.SaveChanges();
 }
Esempio n. 8
0
        public async Task Insert(ImportAudit importAudit)
        {
            await _dataContext.ImportAudit.AddAsync(importAudit);

            _dataContext.SaveChanges();
        }
        public async Task InsertMany(IEnumerable <ProviderStandardLocation> providerStandardLocations)
        {
            await _dataContext.ProviderStandardLocations.AddRangeAsync(providerStandardLocations);

            _dataContext.SaveChanges();
        }
        public async Task InsertMany(IEnumerable <ProviderRegistrationFeedbackAttribute> items)
        {
            await _dataContext.ProviderRegistrationFeedbackAttributes.AddRangeAsync(items);

            _dataContext.SaveChanges();
        }
        public async Task InsertMany(IEnumerable <NationalAchievementRateOverallImport> items)
        {
            await _dataContext.NationalAchievementRateOverallImports.AddRangeAsync(items);

            _dataContext.SaveChanges();
        }
 public void DeleteAll()
 {
     _dataContext.ProviderStandards.RemoveRange(_dataContext.ProviderStandards.ToList());
     _dataContext.SaveChanges();
 }