語言

IDbCommandTreeInterceptor 介面

定義

實作此介面的物件可註冊 DbInterception ,以便在 Entity Framework 建立 DbCommandTree 指令樹時接收通知。

public interface IDbCommandTreeInterceptor : System.Data.Entity.Infrastructure.Interception.IDbInterceptor
type IDbCommandTreeInterceptor = interface
    interface IDbInterceptor
Public Interface IDbCommandTreeInterceptor
Implements IDbInterceptor
實作

備註

攔截器也可以註冊在應用程式的設定檔中。 請參閱 http://go.microsoft.com/fwlink/?LinkId=260883 更多關於實體框架設定的資訊。

方法

名稱 Description
TreeCreated(DbCommandTreeInterceptionContext)

此方法在建立新資料 DbCommandTree 後被呼叫。 攔截後使用的樹狀結構可在攔截時設定 Result 。

適用於