CoreStrings.DerivedEntityCannotHaveKeys(Object) Method

Definition

Unable to set a base type for entity type '{entityType}' because it has one or more keys defined. Only root types can have keys.

C#
public static string DerivedEntityCannotHaveKeys (object entityType);
C#
public static string DerivedEntityCannotHaveKeys (object? entityType);

Parameters

entityType
Object

Returns

Applies to

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