Sprache

DbInterceptionContext.WithDbContext(DbContext) Methode

Definition

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

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

Parameter

context
DbContext

Der kontext, der zugeordnet werden soll.

Gibt zurück

Ein neuer Abfangenkontext, der dem angegebenen Kontext zugeordnet ist.

Gilt für: