共用方式為


IndexWithPropertiesEventData 建構函式

定義

建構事件的事件承載 IndexPropertiesMappedToNonOverlappingTables

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)))

參數

eventDefinition
EventDefinitionBase

事件定義。

messageGenerator
Func<EventDefinitionBase,EventData,String>

產生此事件記錄訊息的委派。

entityType
IEntityType

定義索引的實體類型。

indexName
String

索引的名稱。

indexPropertyNames
List<String>

定義索引的屬性名稱。

property1Name
String

造成此事件之第一個屬性名稱的名稱。

tablesMappedToProperty1
List<ValueTuple<String,String>>

對應至第一個屬性的資料表。

property2Name
String

造成此事件的第二個屬性名稱的名稱。

tablesMappedToProperty2
List<ValueTuple<String,String>>

對應至第二個屬性的資料表。

適用於