Language

DbCommandInterceptionContext.WithCommandBehavior(CommandBehavior) メソッド

定義

特定のCommandBehaviorと共に、このインターセプト コンテキスト内のすべてのコンテキスト情報を含む新しいDbCommandInterceptionContextを作成します。

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

関連付けるコマンドの動作。

戻り値

指定されたコマンド動作に関連付けられている新しいインターセプト コンテキスト。

適用対象