Condividi tramite


IDbTransactionInterceptor.TransactionUsed Metodo

Definizione

Chiamato immediatamente dopo RelationalDatabaseFacadeExtensions.UseTransaction la chiamata.

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

Parametri

connection
DbConnection

Connessione.

eventData
TransactionEventData

Informazioni contestuali sulla connessione e sulla transazione.

result
DbTransaction

Oggetto DbTransaction passato a RelationalDatabaseFacadeExtensions.UseTransaction. Questo valore viene in genere usato come valore restituito per l'implementazione di questo metodo.

Restituisce

Valore che verrà utilizzato come valore effettivo passato a RelationalDatabaseFacadeExtensions.UseTransaction Un'implementazione di questo metodo per qualsiasi intercettore che non sta tentando di modificare il risultato consiste nel restituire il result valore passato.

Si applica a