public async Task InsertMany(IEnumerable <Domain.Entities.Location> apprenticeshipFundingImports) { await _dataContext.Locations.AddRangeAsync(apprenticeshipFundingImports); _dataContext.SaveChanges(); }
public void DeleteAll() { _dataContext.LocationImports.RemoveRange(_dataContext.LocationImports); _dataContext.SaveChanges(); }
public async Task Insert(ImportAudit importAudit) { await _dataContext.ImportAudit.AddAsync(importAudit); _dataContext.SaveChanges(); }