AffectedCountModificationCommandBatch.ConsumeResultSetWithRowsAffectedOnlyAsync Método

Definición

Consume el lector de datos creado por ExecuteAsync(IRelationalConnection, CancellationToken) sin propagar valores de nuevo a ModificationCommand.

protected virtual System.Threading.Tasks.Task<int> ConsumeResultSetWithRowsAffectedOnlyAsync (int commandIndex, Microsoft.EntityFrameworkCore.Storage.RelationalDataReader reader, System.Threading.CancellationToken cancellationToken);
abstract member ConsumeResultSetWithRowsAffectedOnlyAsync : int * Microsoft.EntityFrameworkCore.Storage.RelationalDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.ConsumeResultSetWithRowsAffectedOnlyAsync : int * Microsoft.EntityFrameworkCore.Storage.RelationalDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Protected Overridable Function ConsumeResultSetWithRowsAffectedOnlyAsync (commandIndex As Integer, reader As RelationalDataReader, cancellationToken As CancellationToken) As Task(Of Integer)

Parámetros

commandIndex
Int32

Ordinal del comando que se va a consumir.

reader
RelationalDataReader

Lector de datos.

cancellationToken
CancellationToken

que CancellationToken se va a observar mientras espera a que se complete la tarea.

Devoluciones

Tarea que representa la operación asincrónica. La tarea contiene el ordinal del siguiente comando que se debe consumir.

Excepciones

Se aplica a