次の方法で共有


IDbCommandTreeInterceptor.TreeCreated メソッド

定義

このメソッドは、新しい DbCommandTree が作成された後に呼び出されます。 インターセプト後に使用されるツリーは、インターセプト中に を設定 Result することで変更できます。

public void TreeCreated(System.Data.Entity.Infrastructure.Interception.DbCommandTreeInterceptionContext interceptionContext);
abstract member TreeCreated : System.Data.Entity.Infrastructure.Interception.DbCommandTreeInterceptionContext -> unit
Public Sub TreeCreated (interceptionContext As DbCommandTreeInterceptionContext)

パラメーター

interceptionContext
DbCommandTreeInterceptionContext

呼び出しに関連付けられているコンテキスト情報。

注釈

コマンド ツリーは、クエリと挿入/更新/削除コマンドの両方に対して作成されます。 ただし、クエリ コマンド ツリーはモデルによってキャッシュされます。つまり、コマンド ツリーの作成はクエリが初めて実行されたときにのみ行われ、この通知はその時点でのみ発生します

適用対象