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