EnlistTransactionInterceptionContext.WithTransaction(Transaction) 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.
Creates a new EnlistTransactionInterceptionContext that contains all the contextual information in this interception context together with the given Transaction.
public System.Data.Entity.Infrastructure.Interception.EnlistTransactionInterceptionContext WithTransaction (System.Transactions.Transaction transaction);
member this.WithTransaction : System.Transactions.Transaction -> System.Data.Entity.Infrastructure.Interception.EnlistTransactionInterceptionContext
Parameters
- transaction
- Transaction
The transaction to be used in the EnlistTransaction(Transaction) invocation.
Returns
A new interception context associated with the given isolation level.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for