共用方式為


CoreStrings.DuplicateIndex(Object, Object, Object) 方法

定義

索引 {indexProperties} 無法新增至實體類型 '{entityType}',因為相同屬性上的未命名索引已存在於實體類型 '{duplicateEntityType}'。 請考慮為 'OnModelCreating' 中的其中一個索引新增名稱。

public static string DuplicateIndex (object index, object entityType, object duplicateEntityType);
public static string DuplicateIndex (object indexProperties, object entityType, object duplicateEntityType);
public static string DuplicateIndex (object? indexProperties, object? entityType, object? duplicateEntityType);
static member DuplicateIndex : obj * obj * obj -> string
static member DuplicateIndex : obj * obj * obj -> string
Public Shared Function DuplicateIndex (index As Object, entityType As Object, duplicateEntityType As Object) As String
Public Shared Function DuplicateIndex (indexProperties As Object, entityType As Object, duplicateEntityType As Object) As String

參數

indexindexProperties
Object
entityType
Object
duplicateEntityType
Object

傳回

適用於