IDbTransactionInterceptor.TransactionUsed Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called immediately after RelationalDatabaseFacadeExtensions.UseTransaction is called.
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
Parameters
- connection
- DbConnection
The connection.
- eventData
- TransactionEventData
Contextual information about connection and transaction.
- result
- DbTransaction
The DbTransaction that was passed to RelationalDatabaseFacadeExtensions.UseTransaction. This value is typically used as the return value for the implementation of this method.
Returns
The value that will be used as the effective value passed to RelationalDatabaseFacadeExtensions.UseTransaction
An implementation of this method for any interceptor that is not attempting to change the result
is to return the result
value passed in.
Applies to
Entity Framework