ReaderModificationCommandBatch.ConsumeAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ConsumeAsync(RelationalDataReader, CancellationToken) |
使用 创建 ExecuteAsync(IRelationalConnection, CancellationToken)的数据读取器。 |
ConsumeAsync(DbDataReader, CancellationToken) |
ConsumeAsync(RelationalDataReader, 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