语言

DbCommandInterceptor.ScalarExecuted 方法

定义

调用或其异步对应项之一后调用 ExecuteScalar() 此方法。 实体框架使用的结果可以通过设置 Result来更改。

public virtual void ScalarExecuted(System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<object> interceptionContext);
abstract member ScalarExecuted : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<obj> -> unit
override this.ScalarExecuted : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<obj> -> unit
Public Overridable Sub ScalarExecuted (command As DbCommand, interceptionContext As DbCommandInterceptionContext(Of Object))

参数

command
DbCommand

正在执行的命令。

interceptionContext
DbCommandInterceptionContext<Object>

与调用关联的上下文信息。

实现

适用于