DbInterceptionContext.WithObjectContext(ObjectContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new DbInterceptionContext that contains all the contextual information in this interception context with the addition of the given ObjectContext.
public System.Data.Entity.Infrastructure.Interception.DbInterceptionContext WithObjectContext (System.Data.Entity.Core.Objects.ObjectContext context);
member this.WithObjectContext : System.Data.Entity.Core.Objects.ObjectContext -> System.Data.Entity.Infrastructure.Interception.DbInterceptionContext
Public Function WithObjectContext (context As ObjectContext) As DbInterceptionContext
Parameters
- context
- ObjectContext
The context to associate.
Returns
A new interception context associated with the given context.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework