IDbCommandTreeInterceptor.TreeCreated 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在创建新方法后 DbCommandTree 调用此方法。 截获后使用的树可以通过在拦截时设置 Result 来更改。
public void TreeCreated(System.Data.Entity.Infrastructure.Interception.DbCommandTreeInterceptionContext interceptionContext);
abstract member TreeCreated : System.Data.Entity.Infrastructure.Interception.DbCommandTreeInterceptionContext -> unit
Public Sub TreeCreated (interceptionContext As DbCommandTreeInterceptionContext)
参数
- interceptionContext
- DbCommandTreeInterceptionContext
与调用关联的上下文信息。
注解
命令树是为查询和插入/更新/删除命令创建的。 但是,查询命令树由模型缓存,这意味着命令树创建仅在第一次执行查询时发生,并且此通知仅在该时间发生