DbCommandInterceptionContext.WithDbContext(DbContext) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée un nouveau DbCommandInterceptionContext qui contient toutes les informations contextuelles dans ce contexte d’interception avec l’ajout du donné ObjectContext.
public System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext WithDbContext(System.Data.Entity.DbContext context);
override this.WithDbContext : System.Data.Entity.DbContext -> System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext
Public Function WithDbContext (context As DbContext) As DbCommandInterceptionContext
Paramètres
- context
- DbContext
Contexte à associer.
Retours
Nouveau contexte d’interception associé au contexte donné.