Condividi tramite


MutableInterceptionContext.WithDbContext(DbContext) Metodo

Definizione

Crea un nuovo MutableInterceptionContext che contiene tutte le informazioni contestuali in questo contesto di intercettazione con l'aggiunta ObjectContextdi .

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

Parametri

context
DbContext

Contesto da associare.

Restituisce

Nuovo contesto di intercettazione associato al contesto specificato.

Si applica a