DbTransactionInterceptor.TransactionCommitted 方法

定义

在 EF 调用 后立即调用 Commit()

public virtual void TransactionCommitted (System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.Diagnostics.TransactionEndEventData eventData);
abstract member TransactionCommitted : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEndEventData -> unit
override this.TransactionCommitted : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEndEventData -> unit
Public Overridable Sub TransactionCommitted (transaction As DbTransaction, eventData As TransactionEndEventData)

参数

transaction
DbTransaction

事务。

eventData
TransactionEndEventData

有关连接和事务的上下文信息。

实现

适用于