Share via


MutableInterceptionContext<TResult>.WithDbContext(DbContext) Method

Definition

Creates a new MutableInterceptionContext<TResult> that contains all the contextual information in this interception context with the addition of the given ObjectContext.

public System.Data.Entity.Infrastructure.Interception.MutableInterceptionContext<TResult> WithDbContext(System.Data.Entity.DbContext context);
override this.WithDbContext : System.Data.Entity.DbContext -> System.Data.Entity.Infrastructure.Interception.MutableInterceptionContext<'Result>
Public Function WithDbContext (context As DbContext) As MutableInterceptionContext(Of TResult)

Parameters

context
DbContext

The context to associate.

Returns

A new interception context associated with the given context.

Applies to