Compartir a través de


IDbTransactionInterceptor.TransactionFailed Método

Definición

Se llama cuando se produce un error en el uso de un objeto DbTransaction con una excepción.

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

Parámetros

transaction
DbTransaction

Transacción.

eventData
TransactionErrorEventData

Información contextual sobre la conexión y la transacción.

Se aplica a