Partilhar via


AffectedCountModificationCommandBatch.ConsumeAsync Método

Definição

Sobrecargas

ConsumeAsync(RelationalDataReader, CancellationToken)

Consome o leitor de dados criado por ExecuteAsync(IRelationalConnection, CancellationToken).

ConsumeAsync(DbDataReader, CancellationToken)

ConsumeAsync(RelationalDataReader, CancellationToken)

Origem:
AffectedCountModificationCommandBatch.cs
Origem:
AffectedCountModificationCommandBatch.cs
Origem:
AffectedCountModificationCommandBatch.cs
Origem:
AffectedCountModificationCommandBatch.cs
Origem:
AffectedCountModificationCommandBatch.cs
Origem:
AffectedCountModificationCommandBatch.cs
Origem:
AffectedCountModificationCommandBatch.cs
Origem:
AffectedCountModificationCommandBatch.cs
Origem:
AffectedCountModificationCommandBatch.cs

Consome o leitor de dados criado por ExecuteAsync(IRelationalConnection, CancellationToken).

protected override System.Threading.Tasks.Task ConsumeAsync (Microsoft.EntityFrameworkCore.Storage.RelationalDataReader reader, System.Threading.CancellationToken cancellationToken = default);
override this.ConsumeAsync : Microsoft.EntityFrameworkCore.Storage.RelationalDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overrides Function ConsumeAsync (reader As RelationalDataReader, Optional cancellationToken As CancellationToken = Nothing) As Task

Parâmetros

reader
RelationalDataReader

O leitor de dados.

cancellationToken
CancellationToken

Um CancellationToken a ser observado enquanto aguarda a conclusão da tarefa.

Retornos

Uma tarefa que representa a operação assíncrona.

Exceções

Se o padrão CancellationToken for cancelado.

Aplica-se a

ConsumeAsync(DbDataReader, CancellationToken)

protected override System.Threading.Tasks.Task ConsumeAsync (System.Data.Common.DbDataReader reader, System.Threading.CancellationToken cancellationToken = default);
override this.ConsumeAsync : System.Data.Common.DbDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overrides Function ConsumeAsync (reader As DbDataReader, Optional cancellationToken As CancellationToken = Nothing) As Task

Parâmetros

reader
DbDataReader
cancellationToken
CancellationToken

Retornos

Aplica-se a