DatabaseLogFormatter.BeginningTransaction 方法

定义

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

public virtual void BeginningTransaction (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext interceptionContext);
abstract member BeginningTransaction : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext -> unit
override this.BeginningTransaction : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext -> unit
Public Overridable Sub BeginningTransaction (connection As DbConnection, interceptionContext As BeginTransactionInterceptionContext)

参数

connection
DbConnection

开始事务的连接。

interceptionContext
BeginTransactionInterceptionContext

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

实现

适用于