Compartir a través de


DbConnectionPropertyInterceptionContext<TValue>.WithDbContext Método

Definición

Crea un nuevo DbConnectionPropertyInterceptionContext<TValue> objeto que contiene toda la información contextual de este contexto de interceptación con la adición de la clase especificada ObjectContext.

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

Parámetros

context
DbContext

Contexto que se va a asociar.

Devoluciones

Nuevo contexto de interceptación asociado al contexto especificado.

Se aplica a