CoreLoggerExtensions.QueryCompilationStarting Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
QueryCompilationStarting(IDiagnosticsLogger<DbLoggerCategory.Query>, DbContext, ExpressionPrinter, Expression)
- Origine:
- CoreLoggerExtensions.cs
- Origine:
- CoreLoggerExtensions.cs
- Origine:
- CoreLoggerExtensions.cs
Registra l'evento QueryCompilationStarting .
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)
Parametri
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.Query>
Logger di diagnostica da usare.
- expressionPrinter
- ExpressionPrinter
Usato per creare una rappresentazione leggibile dell'albero delle espressioni.
- queryExpression
- Expression
Struttura ad albero delle espressioni di query.
Restituisce
Espressione di query e dati dell'evento.
Si applica a
QueryCompilationStarting(IDiagnosticsLogger<DbLoggerCategory.Query>, ExpressionPrinter, Expression)
- Origine:
- CoreLoggerExtensions.cs
- Origine:
- CoreLoggerExtensions.cs
Registra l'evento QueryCompilationStarting .
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)
Parametri
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.Query>
Logger di diagnostica da usare.
- expressionPrinter
- ExpressionPrinter
Usato per creare una rappresentazione leggibile dell'albero delle espressioni.
- queryExpression
- Expression
Struttura ad albero delle espressioni di query.