语言

CoreStrings.UnnamedIndexDefinedOnIgnoredProperty 方法

定义

实体类型“{entityType}”上通过 [Index] 属性指定的未命名索引与属性 {indexProperties} 无效。 属性“{propertyName}”被“OnModelCreating”中的 [NotMapped] 属性或“Ignore()”标记为未映射。 索引不能使用未映射的属性。

public static string UnnamedIndexDefinedOnIgnoredProperty(object? entityType, object? indexProperties, object? propertyName);
public static string UnnamedIndexDefinedOnIgnoredProperty(object entityType, object indexPropertyList, object propertyName);
static member UnnamedIndexDefinedOnIgnoredProperty : obj * obj * obj -> string
static member UnnamedIndexDefinedOnIgnoredProperty : obj * obj * obj -> string
Public Shared Function UnnamedIndexDefinedOnIgnoredProperty (entityType As Object, indexProperties As Object, propertyName As Object) As String
Public Shared Function UnnamedIndexDefinedOnIgnoredProperty (entityType As Object, indexPropertyList As Object, propertyName As Object) As String

参数

entityType
Object
indexPropertiesindexPropertyList
Object
propertyName
Object

返回

适用于