IDbCommandTreeInterceptor.TreeCreated Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method is called after a new DbCommandTree has been created. The tree that is used after interception can be changed by setting Result while intercepting.
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)
Parameters
- interceptionContext
- DbCommandTreeInterceptionContext
Contextual information associated with the call.
Remarks
Command trees are created for both queries and insert/update/delete commands. However, query command trees are cached by model which means that command tree creation only happens the first time a query is executed and this notification will only happen at that time
Applies to
Entity Framework