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