AffectedCountModificationCommandBatch.ConsumeResultSetWithPropagationAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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