private async Task CommitChangesCoreAsync(bool useAsync) { await _provider.ExecuteInTransactionAsync(async() => { await CommitChangesAddedItemsAsync(_addedItems, useAsync); await CommitChangesEditedItemsAsync(_editedItems, useAsync); await CommitChangesDeletedItemsAsync(_deletedItems, useAsync); Clear(); }); }
private async Task CommitChangesCoreAsync(bool useAsync, CancellationToken cancellationToken = default) { await _provider.ExecuteInTransactionAsync(async() => { await CommitChangesAddedItemsAsync(_addedItems, useAsync, cancellationToken); await CommitChangesEditedItemsAsync(_editedItems, useAsync, cancellationToken); await CommitChangesUpsertedItemsAsync(_upsertedItems, useAsync, cancellationToken); await CommitChangesDeletedItemsAsync(_deletedItems, useAsync, cancellationToken); await CommitChangesDeletedItemsByIdAsync(_deletedItemsIds, useAsync, cancellationToken); await CommitChangesDeletedByConditionsAsync(_deleteExpressions, useAsync, cancellationToken); Clear(); }); }