public async Task ApplyChangesAsync(IList <Exception> exceptions, IMartenSession session, CancellationToken token) { _command.CommandText = _builder.ToString(); using var reader = await session.Database.ExecuteReaderAsync(_command, token); await UpdateBatch.ApplyCallbacksAsync(_operations, reader, exceptions, token); }
public async Task ApplyChangesAsync(IList <Exception> exceptions, IMartenSession session, CancellationToken token) { if (Count == 0) { return; } _command.CommandText = _builder.ToString(); using var reader = await session.ExecuteReaderAsync(_command, token).ConfigureAwait(false); await UpdateBatch.ApplyCallbacksAsync(_operations, reader, exceptions, token).ConfigureAwait(false); }