DatabaseLogFormatter.DatabaseGetting 方法

定义

除非重写,否则不会写入日志。

public virtual void DatabaseGetting (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext<string> interceptionContext);
abstract member DatabaseGetting : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext<string> -> unit
override this.DatabaseGetting : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext<string> -> unit
Public Overridable Sub DatabaseGetting (connection As DbConnection, interceptionContext As DbConnectionInterceptionContext(Of String))

参数

connection
DbConnection

连接。

interceptionContext
DbConnectionInterceptionContext<String>

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

实现

适用于