共用方式為


AffectedCountModificationCommandBatch.ConsumeAsync 方法

定義

多載

ConsumeAsync(RelationalDataReader, CancellationToken)

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

ConsumeAsync(DbDataReader, CancellationToken)

ConsumeAsync(RelationalDataReader, CancellationToken)

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

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

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

參數

reader
RelationalDataReader

資料讀取器。

cancellationToken
CancellationToken

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

傳回

代表非同步作業的工作。

例外狀況

適用於

ConsumeAsync(DbDataReader, CancellationToken)

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

參數

reader
DbDataReader
cancellationToken
CancellationToken

傳回

適用於