Partilhar via


CoreLoggerExtensions.QueryCompilationStarting Método

Definição

Sobrecargas

QueryCompilationStarting(IDiagnosticsLogger<DbLoggerCategory.Query>, DbContext, ExpressionPrinter, Expression)

Logs do QueryCompilationStarting evento.

QueryCompilationStarting(IDiagnosticsLogger<DbLoggerCategory.Query>, ExpressionPrinter, Expression)

Logs do QueryCompilationStarting evento.

QueryCompilationStarting(IDiagnosticsLogger<DbLoggerCategory.Query>, DbContext, ExpressionPrinter, Expression)

Origem:
CoreLoggerExtensions.cs
Origem:
CoreLoggerExtensions.cs
Origem:
CoreLoggerExtensions.cs

Logs do QueryCompilationStarting evento.

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)

Parâmetros

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Query>

O agente diagnóstico a ser usado.

context
DbContext

O atual DbContextou null , se não for conhecido.

expressionPrinter
ExpressionPrinter

Usado para criar uma representação legível por humanos da árvore de expressão.

queryExpression
Expression

A árvore de expressão de consulta.

Retornos

A expressão de consulta e os dados do evento.

Aplica-se a

QueryCompilationStarting(IDiagnosticsLogger<DbLoggerCategory.Query>, ExpressionPrinter, Expression)

Origem:
CoreLoggerExtensions.cs
Origem:
CoreLoggerExtensions.cs

Logs do QueryCompilationStarting evento.

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)

Parâmetros

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Query>

O agente diagnóstico a ser usado.

expressionPrinter
ExpressionPrinter

Usado para criar uma representação legível por humanos da árvore de expressão.

queryExpression
Expression

A árvore de expressão de consulta.

Aplica-se a