CoreStrings.IdentifyingRelationshipCycle(Object) Method

Definition

A relationship cycle involving the primary keys of the following entity types was detected: '{entityType}'. This would prevent any entity to be inserted without violating the store constraints. Review the foreign keys defined on the primary keys and either remove or use other properties for at least one of them.

C#
public static string IdentifyingRelationshipCycle (object entityType);
C#
public static string IdentifyingRelationshipCycle (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