共用方式為


IDbCommandTreeInterceptor 介面

定義

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

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

備註

攔截器也可以在應用程式的組態檔中註冊。 如需 Entity Framework 組態的詳細資訊,請參閱 http://go.microsoft.com/fwlink/?LinkId=260883 。

方法

TreeCreated(DbCommandTreeInterceptionContext)

這個方法會在建立新的 DbCommandTree 之後呼叫。 在攔截之後使用的樹狀結構可以藉由在攔截時設定 Result 來變更。

適用於