CoreStrings.InheritedPropertyCannotBeIgnored(Object, Object, Object) Method

Definition

The property '{property}' cannot be ignored on type '{type}' because it's declared on the base type '{baseType}'. To exclude this property from your model, use the [NotMapped] attribute or 'Ignore' on the base type in 'OnModelCreating'.

C#
public static string InheritedPropertyCannotBeIgnored (object property, object entityType, object baseEntityType);
C#
public static string InheritedPropertyCannotBeIgnored (object? property, object? entityType, object? baseEntityType);
C#
public static string InheritedPropertyCannotBeIgnored (object? property, object? type, object? baseType);

Parameters

property
Object
entityTypetype
Object
baseEntityTypebaseType
Object

Returns

Applies to

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