Sprache

DbTransactionInterceptionContext.WithConnection(DbConnection) Methode

Definition

Erstellt eine neue DbTransactionInterceptionContext , die alle kontextbezogenen Informationen in diesem Abfangenkontext mit dem Hinzufügen der angegebenen DbConnectionEnthält.

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

Parameter

connection
DbConnection

Die Verbindung, für die die Transaktion gestartet wurde.

Gibt zurück

Ein neuer Abfangenkontext, der auch die Verbindung enthält, für die die Transaktion gestartet wurde.

Gilt für: