DbTransactionInterceptionContext.WithConnection(DbConnection) 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 DbTransactionInterceptionContext that contains all the contextual information in this interception context with the addition of the given DbConnection.
public System.Data.Entity.Infrastructure.Interception.DbTransactionInterceptionContext WithConnection (System.Data.Common.DbConnection connection);
member this.WithConnection : System.Data.Common.DbConnection -> System.Data.Entity.Infrastructure.Interception.DbTransactionInterceptionContext
Public Function WithConnection (connection As DbConnection) As DbTransactionInterceptionContext
Parameters
- connection
- DbConnection
The connection on which the transaction was started.
Returns
A new interception context that also contains the connection on which the transaction was started.
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