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

返回

适用于