IDbTransactionInterceptor.TransactionCommitted 方法

定义

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

public void TransactionCommitted (System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.Diagnostics.TransactionEndEventData eventData);
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
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 Sub TransactionCommitted (transaction As DbTransaction, eventData As TransactionEndEventData)
Public Overridable Sub TransactionCommitted (transaction As DbTransaction, eventData As TransactionEndEventData)

参数

transaction
DbTransaction

事务。

eventData
TransactionEndEventData

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

适用于