public async Task UpdateCurrentProviderSourceDatasets(IEnumerable <ProviderSourceDataset> providerSourceDatasets) { Guard.ArgumentNotNull(providerSourceDatasets, nameof(providerSourceDatasets)); await _cosmosRepository.BulkUpsertAsync <ProviderSourceDataset>( providerSourceDatasets.Select(x => new KeyValuePair <string, ProviderSourceDataset>(x.ProviderId, x)), degreeOfParallelism : 15, undelete : true); }
public async Task SaveDatasets(IEnumerable <Dataset> datasets) { await _cosmosRepository.BulkUpsertAsync(datasets.ToList()); }
public async Task UpdateCalculations(IEnumerable <Calculation> calculations) { await _cosmosRepository.BulkUpsertAsync(calculations.ToList()); }