Table of Contents

Class IndexEventData

Namespace
Microsoft.EntityFrameworkCore.Diagnostics
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

A DiagnosticSource event payload class for the events involving an invalid index.

public class IndexEventData : EventData
Inheritance
IndexEventData

Constructors

IndexEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, IEntityType, string, List<string>)

Constructs the event payload for events involving an invalid index.

public IndexEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, IEntityType entityType, string indexName, List<string> indexPropertyNames)

Parameters

eventDefinition EventDefinitionBase

The event definition.

messageGenerator Func<EventDefinitionBase, EventData, string>

A delegate that generates a log message for this event.

entityType IEntityType

The entity type on which the index is defined.

indexName string

The name of the index.

indexPropertyNames List<string>

The names of the properties which define the index.

Properties

EntityType

The entity type on which the index is defined.

public virtual IEntityType EntityType { get; }

Property Value

IEntityType

Name

The name of the index.

public virtual string Name { get; }

Property Value

string

PropertyNames

The list of properties which define the index.

public virtual List<string> PropertyNames { get; }

Property Value

List<string>