IDbCommandTreeInterceptor 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
實作此介面的物件可以在 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 來變更。 |