CoreStrings.SelfReferencingNavigationWithInverseProperty Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
- 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.
public static string SelfReferencingNavigationWithInverseProperty (object? entityType, object? property);
static member SelfReferencingNavigationWithInverseProperty : obj * obj -> string
Public Shared Function SelfReferencingNavigationWithInverseProperty (entityType As Object, property As Object) As String
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 |
- 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.
public static string SelfReferencingNavigationWithInverseProperty (object property, object entityType, object referencedProperty, object referencedEntityType);
static member SelfReferencingNavigationWithInverseProperty : obj * obj * obj * obj -> string
Public Shared Function SelfReferencingNavigationWithInverseProperty (property As Object, entityType As Object, referencedProperty As Object, referencedEntityType As Object) As String
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 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: