src/Shared/EntityFramework/Infrastructure/Interception/DbTransactionInterceptionContext.cs
/// <summary>
/// Creates a new <see cref="DbTransactionInterceptionContext" /> that contains all the contextual information in this
/// interception context with the addition of the given <see cref="DbConnection" />.
/// </summary>
/// <param name="connection">The connection on which the transaction was started.</param>
/// <returns>A new interception context that also contains the connection on which the transaction was started.</returns>
Creates a new  that contains all the contextual information in this
interception context with the addition of the given .
Creates a new that contains all the contextual information in this interception context with the addition of the given .
public DbTransactionInterceptionContext WithConnection(DbConnection connection)
        {
            Check.NotNull(connection, "connection");
            var transactionInterceptionContext = TypedClone();
            transactionInterceptionContext._connection = connection;
            return transactionInterceptionContext;
        }
public DbTransactionInterceptionContext WithConnection ( DbConnection connection ) { Check . NotNull ( connection , " " ) ; var transactionInterceptionContext = TypedClone ( ) ; transactionInterceptionContext . _connection = connection ; return transactionInterceptionContext ; }
Creates a new  that contains all the contextual information in this
interception context with the addition of the given .
Creates a new that contains all the contextual information in this interception context with the addition of the given .
A new interception context that also contains the connection on which the transaction was started.
A new interception context that also contains the connection on which the transaction was started .
connection
DbConnection
The connection on which the transaction was started.
The connection on which the transaction was started .