DbTransactionInterceptor.TransactionFailed 方法

定义

在使用 DbTransaction 失败并出现异常时调用。

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

参数

transaction
DbTransaction

事务。

eventData
TransactionErrorEventData

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

实现

适用于