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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework