Share via


QueryExpressionEventData Constructors

Definition

Overloads

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

Constructs the event payload.

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

Constructs the event payload.

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

Constructs the event payload.

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.

context
DbContext

The current DbContext, or null if not known.

queryExpression
Expression

The Expression.

expressionPrinter
ExpressionPrinter

An ExpressionPrinter that can be used to render the Expression.

Applies to