共用方式為


AffectedCountModificationCommandBatch.ConsumeResultSetWithoutPropagationAsync 方法

定義

多載

ConsumeResultSetWithoutPropagationAsync(Int32, RelationalDataReader, CancellationToken)

取用 建立 ExecuteAsync(IRelationalConnection, CancellationToken) 的資料讀取器,而不將值傳播回 ModificationCommand

ConsumeResultSetWithoutPropagationAsync(Int32, DbDataReader, CancellationToken)

ConsumeResultSetWithoutPropagationAsync(Int32, RelationalDataReader, CancellationToken)

來源:
AffectedCountModificationCommandBatch.cs
來源:
AffectedCountModificationCommandBatch.cs
來源:
AffectedCountModificationCommandBatch.cs
來源:
AffectedCountModificationCommandBatch.cs
來源:
AffectedCountModificationCommandBatch.cs
來源:
AffectedCountModificationCommandBatch.cs

取用 建立 ExecuteAsync(IRelationalConnection, CancellationToken) 的資料讀取器,而不將值傳播回 ModificationCommand

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

參數

commandIndex
Int32

所取用命令的序數。

reader
RelationalDataReader

資料讀取器。

cancellationToken
CancellationToken

等候 CancellationToken 工作完成時要觀察的 。

傳回

代表非同步作業的工作。 工作包含必須取用的下一個命令序數。

例外狀況

適用於

ConsumeResultSetWithoutPropagationAsync(Int32, DbDataReader, CancellationToken)

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

參數

commandIndex
Int32
reader
DbDataReader
cancellationToken
CancellationToken

傳回

適用於