Share via


IDbCommandInterceptor.ScalarExecuting 方法

定义

此方法在调用 ExecuteScalar() 或其异步对应项之一之前调用。

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

参数

command
DbCommand

正在执行的命令。

interceptionContext
DbCommandInterceptionContext<Object>

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

适用于