CoreStrings.SelfReferencingNavigationWithInverseProperty Method

Definition

Overloads

SelfReferencingNavigationWithInverseProperty(Object, Object)

The inverse for the navigation '{entityType}.{property}' cannot be the same navigation. Change the value in the [InverseProperty] attribute to a different navigation.

SelfReferencingNavigationWithInverseProperty(Object, Object, Object, Object)

A relationship cannot be established from property '{1_entityType}.{0_property}' to property '{3_referencedEntityType}.{2_referencedProperty}'. Check the values in the [InverseProperty] attribute to ensure relationship definitions are unique and reference from one navigation to its corresponding inverse navigation.

SelfReferencingNavigationWithInverseProperty(Object, Object)

Source:
CoreStrings.Designer.cs
Source:
CoreStrings.Designer.cs
Source:
CoreStrings.Designer.cs
Source:
CoreStrings.Designer.cs

The inverse for the navigation '{entityType}.{property}' cannot be the same navigation. Change the value in the [InverseProperty] attribute to a different navigation.

C#
public static string SelfReferencingNavigationWithInverseProperty (object? entityType, object? property);

Parameters

entityType
Object
property
Object

Returns

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0

SelfReferencingNavigationWithInverseProperty(Object, Object, Object, Object)

Source:
CoreStrings.Designer.cs
Source:
CoreStrings.Designer.cs
Source:
CoreStrings.Designer.cs

A relationship cannot be established from property '{1_entityType}.{0_property}' to property '{3_referencedEntityType}.{2_referencedProperty}'. Check the values in the [InverseProperty] attribute to ensure relationship definitions are unique and reference from one navigation to its corresponding inverse navigation.

C#
public static string SelfReferencingNavigationWithInverseProperty (object property, object entityType, object referencedProperty, object referencedEntityType);

Parameters

property
Object
entityType
Object
referencedProperty
Object
referencedEntityType
Object

Returns

Applies to

Entity Framework Core 5.0 and other versions
Product Versions
Entity Framework Core 3.0, 3.1, 5.0