Add supply contract export results
This commit is contained in:
@ -12,9 +12,8 @@ namespace Hcs.WebApp.Services
|
||||
return await context.SupplyContracts.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task UpsertSupplyContracts(IEnumerable<SupplyContract> supplyContracts)
|
||||
public async Task UpsertSupplyContracts(HcsDbContext context, IEnumerable<SupplyContract> supplyContracts)
|
||||
{
|
||||
using var context = GetNewContext();
|
||||
await context.BulkInsertOrUpdateAsync(supplyContracts, new BulkConfig()
|
||||
{
|
||||
PropertiesToExcludeOnUpdate =
|
||||
|
||||
Reference in New Issue
Block a user