Jazyk

AffectedCountModificationCommandBatch.ConsumeResultSetWithPropagationAsync Metoda

Definice

Přetížení

ConsumeResultSetWithPropagationAsync(Int32, RelationalDataReader, CancellationToken)

Zdroj:
AffectedCountModificationCommandBatch.cs
Zdroj:
AffectedCountModificationCommandBatch.cs
Zdroj:
AffectedCountModificationCommandBatch.cs
Zdroj:
AffectedCountModificationCommandBatch.cs
Zdroj:
AffectedCountModificationCommandBatch.cs
Zdroj:
AffectedCountModificationCommandBatch.cs

Využívá čtečku dat vytvořenou ExecuteAsync(IRelationalConnection, CancellationToken), šíření hodnot zpět do ModificationCommand.

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

Parametry

commandIndex
Int32

Pořadové číslo příkazu, který se spotřebovává.

reader
RelationalDataReader

Čtečka dat.

cancellationToken
CancellationToken

A CancellationToken , která se má sledovat při čekání na dokončení úkolu.

Návraty

Úloha, která představuje asynchronní operaci. Úkol obsahuje pořadový řádek dalšího příkazu, který musí být spotřebován.

Výjimky

Platí pro

ConsumeResultSetWithPropagationAsync(Int32, DbDataReader, CancellationToken)

protected virtual System.Threading.Tasks.Task<int> ConsumeResultSetWithPropagationAsync(int commandIndex, System.Data.Common.DbDataReader reader, System.Threading.CancellationToken cancellationToken);
abstract member ConsumeResultSetWithPropagationAsync : int * System.Data.Common.DbDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.ConsumeResultSetWithPropagationAsync : int * System.Data.Common.DbDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Protected Overridable Function ConsumeResultSetWithPropagationAsync (commandIndex As Integer, reader As DbDataReader, cancellationToken As CancellationToken) As Task(Of Integer)

Parametry

commandIndex
Int32
reader
DbDataReader
cancellationToken
CancellationToken

Návraty

Platí pro