DatabaseLogFormatter.ConnectionStringSet 方法

定义

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

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

参数

connection
DbConnection

连接。

interceptionContext
DbConnectionPropertyInterceptionContext<String>

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

实现

适用于