AffectedCountModificationCommandBatch.ConsumeResultSetAsync Method

Definition

Consumes the data reader created by ExecuteAsync(IRelationalConnection, CancellationToken), propagating values back into the ModificationCommand.

C#
protected virtual System.Threading.Tasks.Task<int> ConsumeResultSetAsync (int startCommandIndex, Microsoft.EntityFrameworkCore.Storage.RelationalDataReader reader, System.Threading.CancellationToken cancellationToken);

Parameters

startCommandIndex
Int32

The ordinal of the first result set being consumed.

reader
RelationalDataReader

The data reader.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for the task to complete.

Returns

A task that represents the asynchronous operation. The task contains the ordinal of the next command that must be consumed.

Exceptions

Applies to

Produkt Versioner
Entity Framework Core 7.0, 8.0, 9.0