Share via


QueryModelEventData Constructor

Definition

Constructs the event payload.

public QueryModelEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Remotion.Linq.QueryModel queryModel);
new Microsoft.EntityFrameworkCore.Diagnostics.QueryModelEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * Remotion.Linq.QueryModel -> Microsoft.EntityFrameworkCore.Diagnostics.QueryModelEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), queryModel As QueryModel)

Parameters

eventDefinition
EventDefinitionBase

The event definition.

messageGenerator
Func<EventDefinitionBase,EventData,String>

A delegate that generates a log message for this event.

queryModel
Remotion.Linq.QueryModel

The QueryModel.

Applies to