語言

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

與通話相關的情境資訊。

備註

指令樹同時用於查詢及插入/更新/刪除指令。 然而,查詢指令樹是依模型快取的,這表示指令樹的建立只會在查詢首次執行時發生,且此通知也只會在那時發生

適用於