QueryExpressionEventData Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
QueryExpressionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, Expression, ExpressionPrinter)
Constructs the event payload.
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)
Parameters
- eventDefinition
- EventDefinitionBase
The event definition.
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
A delegate that generates a log message for this event.
- queryExpression
- Expression
The Expression.
- expressionPrinter
- ExpressionPrinter
An ExpressionPrinter that can be used to render the Expression.
Applies to
QueryExpressionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, Expression, IExpressionPrinter)
Constructs the event payload.
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)
Parameters
- eventDefinition
- EventDefinitionBase
The event definition.
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
A delegate that generates a log message for this event.
- queryExpression
- Expression
The Expression.
- expressionPrinter
- Microsoft.EntityFrameworkCore.Query.Internal.IExpressionPrinter
An Microsoft.EntityFrameworkCore.Query.Internal.IExpressionPrinter that can be used to render the Expression.
Applies to
QueryExpressionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbContext, Expression, ExpressionPrinter)
Constructs the event payload.
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)
Parameters
- eventDefinition
- EventDefinitionBase
The event definition.
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
A delegate that generates a log message for this event.
- queryExpression
- Expression
The Expression.
- expressionPrinter
- ExpressionPrinter
An ExpressionPrinter that can be used to render the Expression.
Applies to
Entity Framework