IDbTransactionInterceptor.TransactionUsed Método

Definição

Chamado imediatamente após RelationalDatabaseFacadeExtensions.UseTransaction ser chamado.

public System.Data.Common.DbTransaction TransactionUsed (System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData eventData, System.Data.Common.DbTransaction result);
public virtual System.Data.Common.DbTransaction TransactionUsed (System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData eventData, System.Data.Common.DbTransaction result);
abstract member TransactionUsed : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData * System.Data.Common.DbTransaction -> System.Data.Common.DbTransaction
abstract member TransactionUsed : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData * System.Data.Common.DbTransaction -> System.Data.Common.DbTransaction
override this.TransactionUsed : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData * System.Data.Common.DbTransaction -> System.Data.Common.DbTransaction
Public Function TransactionUsed (connection As DbConnection, eventData As TransactionEventData, result As DbTransaction) As DbTransaction
Public Overridable Function TransactionUsed (connection As DbConnection, eventData As TransactionEventData, result As DbTransaction) As DbTransaction

Parâmetros

connection
DbConnection

A conexão.

eventData
TransactionEventData

Informações contextuais sobre conexão e transação.

result
DbTransaction

O DbTransaction que foi passado para RelationalDatabaseFacadeExtensions.UseTransaction. Esse valor normalmente é usado como o valor retornado para a implementação desse método.

Retornos

O valor que será usado como o valor efetivo passado para RelationalDatabaseFacadeExtensions.UseTransaction Uma implementação desse método para qualquer interceptador que não esteja tentando alterar o resultado é retornar o result valor passado.

Aplica-se a