CoreLoggerExtensions.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.
Overloads
QueryCompilationStarting(IDiagnosticsLogger<DbLoggerCategory.Query>, DbContext, ExpressionPrinter, Expression)
- Source:
- CoreLoggerExtensions.cs
- Source:
- CoreLoggerExtensions.cs
- Source:
- CoreLoggerExtensions.cs
Logs for the QueryCompilationStarting event.
public static (System.Linq.Expressions.Expression Query, Microsoft.EntityFrameworkCore.Diagnostics.QueryExpressionEventData? EventData) QueryCompilationStarting (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> diagnostics, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Query.ExpressionPrinter expressionPrinter, System.Linq.Expressions.Expression queryExpression);
static member QueryCompilationStarting : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Query.ExpressionPrinter * System.Linq.Expressions.Expression -> ValueTuple<System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Diagnostics.QueryExpressionEventData>
<Extension()>
Public Function QueryCompilationStarting (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Query), context As DbContext, expressionPrinter As ExpressionPrinter, queryExpression As Expression) As ValueTuple(Of Expression, QueryExpressionEventData)
Parameters
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.Query>
The diagnostics logger to use.
- expressionPrinter
- ExpressionPrinter
Used to create a human-readable representation of the expression tree.
- queryExpression
- Expression
The query expression tree.
Returns
The query expression and event data.
Applies to
QueryCompilationStarting(IDiagnosticsLogger<DbLoggerCategory.Query>, ExpressionPrinter, Expression)
- Source:
- CoreLoggerExtensions.cs
- Source:
- CoreLoggerExtensions.cs
Logs for the QueryCompilationStarting event.
public static void QueryCompilationStarting (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> diagnostics, Microsoft.EntityFrameworkCore.Query.ExpressionPrinter expressionPrinter, System.Linq.Expressions.Expression queryExpression);
static member QueryCompilationStarting : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> * Microsoft.EntityFrameworkCore.Query.ExpressionPrinter * System.Linq.Expressions.Expression -> unit
<Extension()>
Public Sub QueryCompilationStarting (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Query), expressionPrinter As ExpressionPrinter, queryExpression As Expression)
Parameters
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.Query>
The diagnostics logger to use.
- expressionPrinter
- ExpressionPrinter
Used to create a human-readable representation of the expression tree.
- queryExpression
- Expression
The query expression tree.
Applies to
Entity Framework