IQueryExpressionInterceptor.QueryCompilationStarting 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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework