MutableInterceptionContext.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 MutableInterceptionContext qui contient toutes les informations contextuelles dans ce contexte d’interception avec l’ajout du donné ObjectContext.
public System.Data.Entity.Infrastructure.Interception.MutableInterceptionContext WithDbContext(System.Data.Entity.DbContext context);
override this.WithDbContext : System.Data.Entity.DbContext -> System.Data.Entity.Infrastructure.Interception.MutableInterceptionContext
Public Function WithDbContext (context As DbContext) As MutableInterceptionContext
Paramètres
- context
- DbContext
Contexte à associer.
Retours
Nouveau contexte d’interception associé au contexte donné.