AffectedCountModificationCommandBatch.ConsumeResultSetWithPropagationAsync 方法

定义

重载

ConsumeResultSetWithPropagationAsync(Int32, RelationalDataReader, CancellationToken)

使用由 ExecuteAsync(IRelationalConnection, CancellationToken)创建的数据读取器,将值传播回 。ModificationCommand

ConsumeResultSetWithPropagationAsync(Int32, DbDataReader, CancellationToken)

ConsumeResultSetWithPropagationAsync(Int32, RelationalDataReader, CancellationToken)

使用由 ExecuteAsync(IRelationalConnection, CancellationToken)创建的数据读取器,将值传播回 。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)

参数

commandIndex
Int32

正在使用的命令的序号。

reader
RelationalDataReader

数据读取器。

cancellationToken
CancellationToken

等待 CancellationToken 任务完成时要观察的 。

返回

表示异步操作的任务。 该任务包含必须使用的下一个命令的序号。

例外

适用于

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)

参数

commandIndex
Int32
reader
DbDataReader
cancellationToken
CancellationToken

返回

适用于