Compartilhar via


IndexWithPropertiesEventData Construtor

Definição

Constrói o conteúdo do evento para o IndexPropertiesMappedToNonOverlappingTables evento.

public IndexWithPropertiesEventData (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 property1Name, System.Collections.Generic.List<(string Table, string Schema)> tablesMappedToProperty1, string property2Name, System.Collections.Generic.List<(string Table, string Schema)> tablesMappedToProperty2);
public IndexWithPropertiesEventData (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 property1Name, System.Collections.Generic.List<(string Table, string? Schema)> tablesMappedToProperty1, string property2Name, System.Collections.Generic.List<(string Table, string? Schema)> tablesMappedToProperty2);
new Microsoft.EntityFrameworkCore.Diagnostics.IndexWithPropertiesEventData : 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 * System.Collections.Generic.List<ValueTuple<string, string>> * string * System.Collections.Generic.List<ValueTuple<string, string>> -> Microsoft.EntityFrameworkCore.Diagnostics.IndexWithPropertiesEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), entityType As IEntityType, indexName As String, indexPropertyNames As List(Of String), property1Name As String, tablesMappedToProperty1 As List(Of ValueTuple(Of String, String)), property2Name As String, tablesMappedToProperty2 As List(Of ValueTuple(Of String, 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.

property1Name
String

O nome do nome da primeira propriedade que causa esse evento.

tablesMappedToProperty1
List<ValueTuple<String,String>>

As tabelas mapeadas para a primeira propriedade.

property2Name
String

O nome do segundo nome da propriedade que causa esse evento.

tablesMappedToProperty2
List<ValueTuple<String,String>>

As tabelas mapeadas para a segunda propriedade.

Aplica-se a