Share via


IQueryExpressionInterceptor.QueryCompilationStarting Method

Definition

Called with the LINQ expression tree for a query before it is compiled.

public virtual System.Linq.Expressions.Expression QueryCompilationStarting (System.Linq.Expressions.Expression queryExpression, Microsoft.EntityFrameworkCore.Diagnostics.QueryExpressionEventData eventData);
abstract member QueryCompilationStarting : System.Linq.Expressions.Expression * Microsoft.EntityFrameworkCore.Diagnostics.QueryExpressionEventData -> System.Linq.Expressions.Expression
override this.QueryCompilationStarting : System.Linq.Expressions.Expression * Microsoft.EntityFrameworkCore.Diagnostics.QueryExpressionEventData -> System.Linq.Expressions.Expression
Public Overridable Function QueryCompilationStarting (queryExpression As Expression, eventData As QueryExpressionEventData) As Expression

Parameters

queryExpression
Expression

The query expression.

eventData
QueryExpressionEventData

Contextual information about the query environment.

Returns

The query expression tree to continue with, which may have been changed by the interceptor.

Applies to