Condividi tramite


DbCommandInterceptionContext.WithCommandBehavior(CommandBehavior) Metodo

Definizione

Crea un nuovo DbCommandInterceptionContext che contiene tutte le informazioni contestuali in questo contesto di intercettazione insieme all'oggetto specificato CommandBehavior.

public System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext WithCommandBehavior (System.Data.CommandBehavior commandBehavior);
member this.WithCommandBehavior : System.Data.CommandBehavior -> System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext

Parametri

commandBehavior
CommandBehavior

Comportamento del comando da associare.

Restituisce

Nuovo contesto di intercettazione associato al comportamento del comando specificato.

Si applica a