IDbCommandTreeInterceptor 接口

定义

可以在实体框架创建命令树时向 DbInterception 注册实现此接口的对象 DbCommandTree ,以接收通知。

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 来更改。

适用于