IDbCommandTreeInterceptor.TreeCreated 方法

定义

在创建新方法后 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

与调用关联的上下文信息。

注解

命令树是为查询和插入/更新/删除命令创建的。 但是,查询命令树由模型缓存,这意味着命令树创建仅在第一次执行查询时发生,并且此通知仅在该时间发生

适用于