Udostępnij za pośrednictwem


DbCommandInterceptionContext<TResult>.WithCommandBehavior Metoda

Definicja

Tworzy nowy DbCommandInterceptionContext<TResult> element zawierający wszystkie informacje kontekstowe w tym kontekście przechwytywania wraz z danym CommandBehaviorelementem .

public System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<TResult> WithCommandBehavior (System.Data.CommandBehavior commandBehavior);
override this.WithCommandBehavior : System.Data.CommandBehavior -> System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result>

Parametry

commandBehavior
CommandBehavior

Zachowanie polecenia do skojarzenia.

Zwraca

Nowy kontekst przechwytywania skojarzony z danym zachowaniem polecenia.

Dotyczy