DatabaseLogFormatter.ConnectionGetting 方法

定义

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

public virtual void ConnectionGetting (System.Data.Common.DbTransaction transaction, System.Data.Entity.Infrastructure.Interception.DbTransactionInterceptionContext<System.Data.Common.DbConnection> interceptionContext);
abstract member ConnectionGetting : System.Data.Common.DbTransaction * System.Data.Entity.Infrastructure.Interception.DbTransactionInterceptionContext<System.Data.Common.DbConnection> -> unit
override this.ConnectionGetting : System.Data.Common.DbTransaction * System.Data.Entity.Infrastructure.Interception.DbTransactionInterceptionContext<System.Data.Common.DbConnection> -> unit
Public Overridable Sub ConnectionGetting (transaction As DbTransaction, interceptionContext As DbTransactionInterceptionContext(Of DbConnection))

参数

transaction
DbTransaction

事务。

interceptionContext
DbTransactionInterceptionContext<DbConnection>

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

实现

适用于