AffectedCountModificationCommandBatch.ConsumeResultSetWithoutPropagationAsync Method

Definition

Overloads

ConsumeResultSetWithoutPropagationAsync(Int32, RelationalDataReader, CancellationToken)

Source:
AffectedCountModificationCommandBatch.cs
Source:
AffectedCountModificationCommandBatch.cs
Source:
AffectedCountModificationCommandBatch.cs
Source:
AffectedCountModificationCommandBatch.cs
Source:
AffectedCountModificationCommandBatch.cs
Source:
AffectedCountModificationCommandBatch.cs

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

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

Parameters

commandIndex
Int32

The ordinal of the command 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

Entity Framework Core 6.0 och andra versioner
Produkt Versioner
Entity Framework Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0

ConsumeResultSetWithoutPropagationAsync(Int32, DbDataReader, CancellationToken)

C#
protected virtual System.Threading.Tasks.Task<int> ConsumeResultSetWithoutPropagationAsync (int commandIndex, System.Data.Common.DbDataReader reader, System.Threading.CancellationToken cancellationToken);

Parameters

commandIndex
Int32
reader
DbDataReader
cancellationToken
CancellationToken

Returns

Applies to

Entity Framework Core 1.1 och Entity Framework Core 1.0
Produkt Versioner
Entity Framework Core 1.0, 1.1