Table of Contents

Class IndexWithPropertiesEventData

Namespace
Microsoft.EntityFrameworkCore.Diagnostics
Assembly
Microsoft.EntityFrameworkCore.Relational.dll
public class IndexWithPropertiesEventData : EventData
Inheritance
IndexWithPropertiesEventData

Constructors

IndexWithPropertiesEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, IEntityType, string, List<string>, string, List<(string Table, string Schema)>, string, List<(string Table, string Schema)>)

Constructs the event payload for the IndexPropertiesMappedToNonOverlappingTables event.

public IndexWithPropertiesEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, IEntityType entityType, string indexName, List<string> indexPropertyNames, string property1Name, List<(string Table, string Schema)> tablesMappedToProperty1, string property2Name, List<(string Table, string Schema)> tablesMappedToProperty2)

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.

property1Name string

The name of the first property name which causes this event.

tablesMappedToProperty1 List<(string Table, string Schema)>

The tables mapped to the first property.

property2Name string

The name of the second property name which causes this event.

tablesMappedToProperty2 List<(string Table, string Schema)>

The tables mapped to the second property.

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

Property1Name

The name of the first property.

public virtual string Property1Name { get; }

Property Value

string

Property2Name

The name of the second property.

public virtual string Property2Name { get; }

Property Value

string

PropertyNames

The list of properties which define the index.

public virtual List<string> PropertyNames { get; }

Property Value

List<string>

TablesMappedToProperty1

The tables mapped to the first property.

public virtual List<(string Table, string Schema)> TablesMappedToProperty1 { get; }

Property Value

List<(string Table, string Schema)>

TablesMappedToProperty2

The tables mapped to the second property.

public virtual List<(string Table, string Schema)> TablesMappedToProperty2 { get; }

Property Value

List<(string Table, string Schema)>