EntityCommand.ExecuteDbDataReaderAsync 方法

定义

异步执行 命令并返回用于读取结果的数据读取器

[System.Diagnostics.DebuggerStepThrough]
protected override System.Threading.Tasks.Task<System.Data.Common.DbDataReader> ExecuteDbDataReaderAsync (System.Data.CommandBehavior behavior, System.Threading.CancellationToken cancellationToken);
override this.ExecuteDbDataReaderAsync : System.Data.CommandBehavior * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Data.Common.DbDataReader>

参数

behavior
CommandBehavior

执行命令时要使用的行为

cancellationToken
CancellationToken

要监视取消请求的令牌

返回

表示异步操作的任务。 任务结果包含一个 DbDataReader 对象。

属性

适用于