共用方式為


CoreLoggerExtensions.QueryCompilationStarting 方法

定義

多載

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

QueryCompilationStarting事件的記錄。

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

QueryCompilationStarting事件的記錄。

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

來源:
CoreLoggerExtensions.cs
來源:
CoreLoggerExtensions.cs
來源:
CoreLoggerExtensions.cs

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)

參數

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Query>

要使用的診斷記錄器。

context
DbContext

目前的 DbContext ,如果不知道,則 null 為 。

expressionPrinter
ExpressionPrinter

用來建立人類看得懂的運算式樹狀結構標記法。

queryExpression
Expression

查詢運算式樹狀結構。

傳回

查詢運算式和事件資料。

適用於

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

來源:
CoreLoggerExtensions.cs
來源:
CoreLoggerExtensions.cs

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)

參數

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Query>

要使用的診斷記錄器。

expressionPrinter
ExpressionPrinter

用來建立人類看得懂的運算式樹狀結構標記法。

queryExpression
Expression

查詢運算式樹狀結構。

適用於