IDbCommandTreeInterceptor.TreeCreated 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
此方法在建立新資料 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
與通話相關的情境資訊。
備註
指令樹同時用於查詢及插入/更新/刪除指令。 然而,查詢指令樹是依模型快取的,這表示指令樹的建立只會在查詢首次執行時發生,且此通知也只會在那時發生