IDbCommandTreeInterceptor 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
可以在实体框架创建命令树时向 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 来更改。 |