Sprache

BeginTransactionInterceptionContext.WithDbContext(DbContext) Methode

Definition

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

public System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext WithDbContext(System.Data.Entity.DbContext context);
override this.WithDbContext : System.Data.Entity.DbContext -> System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext
Public Function WithDbContext (context As DbContext) As BeginTransactionInterceptionContext

Parameter

context
DbContext

Der kontext, der zugeordnet werden soll.

Gibt zurück

Ein neuer Abfangenkontext, der dem angegebenen Kontext zugeordnet ist.

Gilt für: