DbInterceptionContext.WithDbContext(DbContext) Method

Definition

Creates a new DbInterceptionContext that contains all the contextual information in this interception context with the addition of the given DbContext.

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

Parameters

context
DbContext

The context to associate.

Returns

A new interception context associated with the given context.

Applies to