DatabaseLogFormatter.ScalarExecuting 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此方法在调用 ExecuteScalar() 或其异步对应项之一之前调用。 默认实现调用 Executing<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) 并启动从 GetStopwatch(DbCommandInterceptionContext)返回的秒表。
public virtual 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
override this.ScalarExecuting : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<obj> -> unit
Public Overridable Sub ScalarExecuting (command As DbCommand, interceptionContext As DbCommandInterceptionContext(Of Object))
参数
- command
- DbCommand
正在执行的命令。
- interceptionContext
- DbCommandInterceptionContext<Object>
与调用关联的上下文信息。