IndexWithPropertyEventData Construtor

Definição

Constrói o conteúdo do evento para índices com uma propriedade inválida.

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)

Parâmetros

eventDefinition
EventDefinitionBase

A definição de evento.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Um delegado que gera uma mensagem de log para esse evento.

entityType
IEntityType

O tipo de entidade no qual o índice é definido.

indexName
String

O nome do índice.

indexPropertyNames
List<String>

Os nomes das propriedades que definem o índice.

invalidPropertyName
String

O nome da propriedade que é inválido.

Aplica-se a