public async Task WriteUsed(EksCreateJobInputEntity[] used) { foreach (var i in used) { i.Used = true; } await using (_ContentDbContext.BeginTransaction()) { await _ContentDbContext.BulkUpdateAsync(used); _ContentDbContext.SaveAndCommit(); } }
public async Task WriteUsed(EksCreateJobInputEntity[] used) { foreach (var i in used) { i.Used = true; } await using (_ContentDbContext.BeginTransaction()) { await _ContentDbContext.BulkUpdateAsync(used); _ContentDbContext.SaveAndCommit(); } }