Class IndexWithPropertyEventData
- Namespace
- Microsoft.EntityFrameworkCore.Diagnostics
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
A DiagnosticSource event payload class for the events involving an invalid property name on an index.
public class IndexWithPropertyEventData : EventData
- Inheritance
-
IndexWithPropertyEventData
Constructors
IndexWithPropertyEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, IEntityType, string, List<string>, string)
Constructs the event payload for indexes with a invalid property.
public IndexWithPropertyEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, IEntityType entityType, string indexName, List<string> indexPropertyNames, string invalidPropertyName)
Parameters
eventDefinitionEventDefinitionBaseThe event definition.
messageGeneratorFunc<EventDefinitionBase, EventData, string>A delegate that generates a log message for this event.
entityTypeIEntityTypeThe entity type on which the index is defined.
indexNamestringThe name of the index.
indexPropertyNamesList<string>The names of the properties which define the index.
invalidPropertyNamestringThe property name which is invalid.
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
PropertyName
The name of the specific property.
public virtual string PropertyName { get; }
Property Value
PropertyNames
The list of properties which define the index.
public virtual List<string> PropertyNames { get; }