QueryExpressionEventData 构造函数

定义

重载

QueryExpressionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, Expression, ExpressionPrinter)

构造事件有效负载。

QueryExpressionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, Expression, IExpressionPrinter)

构造事件有效负载。

QueryExpressionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbContext, Expression, ExpressionPrinter)

构造事件有效负载。

QueryExpressionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, Expression, ExpressionPrinter)

构造事件有效负载。

public QueryExpressionEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Linq.Expressions.Expression queryExpression, Microsoft.EntityFrameworkCore.Query.ExpressionPrinter expressionPrinter);
new Microsoft.EntityFrameworkCore.Diagnostics.QueryExpressionEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Linq.Expressions.Expression * Microsoft.EntityFrameworkCore.Query.ExpressionPrinter -> Microsoft.EntityFrameworkCore.Diagnostics.QueryExpressionEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), queryExpression As Expression, expressionPrinter As ExpressionPrinter)

参数

eventDefinition
EventDefinitionBase

事件定义。

messageGenerator
Func<EventDefinitionBase,EventData,String>

生成此事件的日志消息的委托。

queryExpression
Expression

Expression

expressionPrinter
ExpressionPrinter

ExpressionPrinter可用于呈现 的 Expression

适用于

QueryExpressionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, Expression, IExpressionPrinter)

构造事件有效负载。

public QueryExpressionEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Linq.Expressions.Expression queryExpression, Microsoft.EntityFrameworkCore.Query.Internal.IExpressionPrinter expressionPrinter);
new Microsoft.EntityFrameworkCore.Diagnostics.QueryExpressionEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Linq.Expressions.Expression * Microsoft.EntityFrameworkCore.Query.Internal.IExpressionPrinter -> Microsoft.EntityFrameworkCore.Diagnostics.QueryExpressionEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), queryExpression As Expression, expressionPrinter As IExpressionPrinter)

参数

eventDefinition
EventDefinitionBase

事件定义。

messageGenerator
Func<EventDefinitionBase,EventData,String>

生成此事件的日志消息的委托。

queryExpression
Expression

Expression

expressionPrinter
Microsoft.EntityFrameworkCore.Query.Internal.IExpressionPrinter

Microsoft.EntityFrameworkCore.Query.Internal.IExpressionPrinter可用于呈现 的 Expression

适用于

QueryExpressionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbContext, Expression, ExpressionPrinter)

构造事件有效负载。

public QueryExpressionEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Microsoft.EntityFrameworkCore.DbContext? context, System.Linq.Expressions.Expression queryExpression, Microsoft.EntityFrameworkCore.Query.ExpressionPrinter expressionPrinter);
new Microsoft.EntityFrameworkCore.Diagnostics.QueryExpressionEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * Microsoft.EntityFrameworkCore.DbContext * System.Linq.Expressions.Expression * Microsoft.EntityFrameworkCore.Query.ExpressionPrinter -> Microsoft.EntityFrameworkCore.Diagnostics.QueryExpressionEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), context As DbContext, queryExpression As Expression, expressionPrinter As ExpressionPrinter)

参数

eventDefinition
EventDefinitionBase

事件定义。

messageGenerator
Func<EventDefinitionBase,EventData,String>

生成此事件的日志消息的委托。

context
DbContext

当前 DbContext为 ;如果未知,则 null 为 。

queryExpression
Expression

Expression

expressionPrinter
ExpressionPrinter

ExpressionPrinter可用于呈现 的 Expression

适用于