IndexWithPropertyEventData Costruttore

Definizione

Costruisce il payload dell'evento per gli indici con una proprietà non valida.

public IndexWithPropertyEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, string indexName, System.Collections.Generic.List<string> indexPropertyNames, string invalidPropertyName);
public IndexWithPropertyEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, string? indexName, System.Collections.Generic.List<string> indexPropertyNames, string invalidPropertyName);
new Microsoft.EntityFrameworkCore.Diagnostics.IndexWithPropertyEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * Microsoft.EntityFrameworkCore.Metadata.IEntityType * string * System.Collections.Generic.List<string> * string -> Microsoft.EntityFrameworkCore.Diagnostics.IndexWithPropertyEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), entityType As IEntityType, indexName As String, indexPropertyNames As List(Of String), invalidPropertyName As String)

Parametri

eventDefinition
EventDefinitionBase

Definizione dell'evento.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Delegato che genera un messaggio di log per questo evento.

entityType
IEntityType

Tipo di entità in cui è definito l'indice.

indexName
String

Nome dell'indice.

indexPropertyNames
List<String>

Nomi delle proprietà che definiscono l'indice.

invalidPropertyName
String

Nome della proprietà non valido.

Si applica a