Interface ITransactionEnlistmentManager
- Namespace
- Microsoft.EntityFrameworkCore.Storage
- Assembly
- Microsoft.EntityFrameworkCore.dll
Manages the current Transaction.
This interface is typically used by database providers (and other extensions). It is generally not used in application code.
public interface ITransactionEnlistmentManager
Remarks
See Implementation of database providers and extensions for more information and examples.
Properties
CurrentAmbientTransaction
The current ambient transaction. Defaults to Current.
Transaction? CurrentAmbientTransaction { get; }
Property Value
EnlistedTransaction
The currently enlisted transaction.
Transaction? EnlistedTransaction { get; }
Property Value
Methods
EnlistTransaction(Transaction?)
Specifies an existing Transaction to be used for database operations.
void EnlistTransaction(Transaction? transaction)
Parameters
transaction
TransactionThe transaction to be used.