共用方式為


ReaderModificationCommandBatch.ConsumeAsync 方法

定義

多載

ConsumeAsync(RelationalDataReader, CancellationToken)

取用 所 ExecuteAsync(IRelationalConnection, CancellationToken) 建立的資料讀取器。

ConsumeAsync(DbDataReader, CancellationToken)

ConsumeAsync(RelationalDataReader, CancellationToken)

來源:
ReaderModificationCommandBatch.cs
來源:
ReaderModificationCommandBatch.cs
來源:
ReaderModificationCommandBatch.cs
來源:
ReaderModificationCommandBatch.cs
來源:
ReaderModificationCommandBatch.cs
來源:
ReaderModificationCommandBatch.cs
來源:
ReaderModificationCommandBatch.cs
來源:
ReaderModificationCommandBatch.cs
來源:
ReaderModificationCommandBatch.cs

取用 所 ExecuteAsync(IRelationalConnection, CancellationToken) 建立的資料讀取器。

protected abstract System.Threading.Tasks.Task ConsumeAsync (Microsoft.EntityFrameworkCore.Storage.RelationalDataReader reader, System.Threading.CancellationToken cancellationToken = default);
abstract member ConsumeAsync : Microsoft.EntityFrameworkCore.Storage.RelationalDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected MustOverride Function ConsumeAsync (reader As RelationalDataReader, Optional cancellationToken As CancellationToken = Nothing) As Task

參數

reader
RelationalDataReader

資料讀取器。

cancellationToken
CancellationToken

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

傳回

代表非同步作業的工作。

例外狀況

適用於

ConsumeAsync(DbDataReader, CancellationToken)

protected abstract System.Threading.Tasks.Task ConsumeAsync (System.Data.Common.DbDataReader reader, System.Threading.CancellationToken cancellationToken = default);
abstract member ConsumeAsync : System.Data.Common.DbDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected MustOverride Function ConsumeAsync (reader As DbDataReader, Optional cancellationToken As CancellationToken = Nothing) As Task

參數

reader
DbDataReader
cancellationToken
CancellationToken

傳回

適用於