DbCommandDispatcher.NonQueryAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public virtual System.Threading.Tasks.Task<int> NonQueryAsync (System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext interceptionContext, System.Threading.CancellationToken cancellationToken);
abstract member NonQueryAsync : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.NonQueryAsync : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
参数
- command
- DbCommand
将对其执行操作的命令。
- interceptionContext
- DbCommandInterceptionContext
有关进行调用的上下文的可选信息。
- cancellationToken
- CancellationToken
异步操作的取消标记。
返回
操作的结果,可能已被侦听器修改。
注解
请注意,执行命令的结果由此方法返回。 结果在传递到此方法的拦截上下文中不可用,因为拦截上下文在传递给侦听器之前是克隆的。