DbCommandInterceptionContext.WithCommandBehavior(CommandBehavior) Method

Definition

Creates a new DbCommandInterceptionContext that contains all the contextual information in this interception context together with the given 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

Parameters

commandBehavior
CommandBehavior

The command behavior to associate.

Returns

A new interception context associated with the given command behavior.

Applies to