QueryExpressionEventData 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
- 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
- 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>
生成此事件的日志消息的委托。
- queryExpression
- Expression
- expressionPrinter
- ExpressionPrinter
ExpressionPrinter可用于呈现 的 Expression。