CoreStrings.DuplicateIndex(Object, Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The index {indexProperties} cannot be added to the entity type '{entityType}' because an unnamed index on the same properties already exists on entity type '{duplicateEntityType}'. Consider adding a name for one of the indexes in '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
Parameters
- indexindexProperties
- Object
- entityType
- Object
- duplicateEntityType
- Object
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework