CoreStrings.NamedIndexDefinedOnIgnoredProperty Method

Definition

The index '{indexName}' specified via [Index] attribute on the entity type '{entityType}' with properties {indexProperties} is invalid. The property '{propertyName}' has been marked as unmapped via the [NotMapped] attribute or the 'EntityTypeBuilder.Ignore' fluent API. An index cannot use unmapped properties.

C#
public static string NamedIndexDefinedOnIgnoredProperty (object indexName, object entityType, object indexPropertyList, object propertyName);
C#
public static string NamedIndexDefinedOnIgnoredProperty (object? indexName, object? entityType, object? indexProperties, object? propertyName);

Parameters

indexName
Object
entityType
Object
indexPropertyListindexProperties
Object
propertyName
Object

Returns

Applies to

Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0