Share via


DbConnectionPropertyInterceptionContext<TValue>.WithObjectContext Method

Definition

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

public System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext<TValue> WithObjectContext (System.Data.Entity.Core.Objects.ObjectContext context);
override this.WithObjectContext : System.Data.Entity.Core.Objects.ObjectContext -> System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext<'Value>
Public Function WithObjectContext (context As ObjectContext) As DbConnectionPropertyInterceptionContext(Of TValue)

Parameters

context
ObjectContext

The context to associate.

Returns

A new interception context associated with the given context.

Applies to