Поделиться через


DbCommandInterceptionContext.WithCommandBehavior(CommandBehavior) Метод

Определение

Создает новый DbCommandInterceptionContext объект , содержащий все контекстные сведения в этом контексте перехвата вместе с заданным 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

Параметры

commandBehavior
CommandBehavior

Поведение команды для связывания.

Возвращаемое значение

Новый контекст перехвата, связанный с заданным поведением команды.

Применяется к