ReaderModificationCommandBatch.ConsumeAsync 方法

定义

重载

ConsumeAsync(RelationalDataReader, CancellationToken)

使用 创建 ExecuteAsync(IRelationalConnection, CancellationToken)的数据读取器。

ConsumeAsync(DbDataReader, CancellationToken)

ConsumeAsync(RelationalDataReader, CancellationToken)

Source:
ReaderModificationCommandBatch.cs
Source:
ReaderModificationCommandBatch.cs
Source:
ReaderModificationCommandBatch.cs
Source:
ReaderModificationCommandBatch.cs
Source:
ReaderModificationCommandBatch.cs
Source:
ReaderModificationCommandBatch.cs
Source:
ReaderModificationCommandBatch.cs
Source:
ReaderModificationCommandBatch.cs
Source:
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

返回

适用于