Class IndexWithPropertiesEventData
- Namespace
- Microsoft.EntityFrameworkCore.Diagnostics
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
A DiagnosticSource event payload class for the IndexPropertiesMappedToNonOverlappingTables event.
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
EventDefinitionBaseThe event definition.
messageGenerator
Func<EventDefinitionBase, EventData, string>A delegate that generates a log message for this event.
entityType
IEntityTypeThe entity type on which the index is defined.
indexName
stringThe name of the index.
indexPropertyNames
List<string>The names of the properties which define the index.
property1Name
stringThe name of the first property name which causes this event.
tablesMappedToProperty1
List<(string Table, string Schema)>The tables mapped to the first property.
property2Name
stringThe 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
Property1Name
The name of the first property.
public virtual string Property1Name { get; }
Property Value
Property2Name
The name of the second property.
public virtual string Property2Name { get; }
Property Value
PropertyNames
The list of properties which define the index.
public virtual List<string> PropertyNames { get; }
Property Value
TablesMappedToProperty1
The tables mapped to the first property.
public virtual List<(string Table, string Schema)> TablesMappedToProperty1 { get; }
Property Value
TablesMappedToProperty2
The tables mapped to the second property.
public virtual List<(string Table, string Schema)> TablesMappedToProperty2 { get; }