共用方式為


CoreStrings.NamedIndexDefinedOnIgnoredProperty 方法

定義

在實體類型 '{entityType}' 上透過 [Index] 屬性指定的索引 '{indexName}' 與屬性 {indexProperties} 無效。 屬性 '{propertyName}' 已透過 [NotMapped] 屬性或 'EntityTypeBuilder.Ignore' Fluent API 標示為未對應。 索引無法使用未對應的屬性。

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

參數

indexName
Object
entityType
Object
indexPropertyListindexProperties
Object
propertyName
Object

傳回

適用於