CoreStrings.InvalidRelationshipUsingDataAnnotations Method
Definition
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.
An invalid relationship has been specified using the [InverseProperty] and [ForeignKey] attributes. The navigations '{1_entityType}.{0_navigation}' and '{3_referencedEntityType}.{2_referencedNavigation}' are related by the [InverseProperty] attribute, but the [ForeignKey] attributes specified for both navigations have different values. Either specify the same properties or remove one of the attributes.
public static string InvalidRelationshipUsingDataAnnotations (object navigation, object entityType, object referencedNavigation, object referencedEntityType);
public static string InvalidRelationshipUsingDataAnnotations (object? navigation, object? entityType, object? referencedNavigation, object? referencedEntityType);
static member InvalidRelationshipUsingDataAnnotations : obj * obj * obj * obj -> string
Public Shared Function InvalidRelationshipUsingDataAnnotations (navigation As Object, entityType As Object, referencedNavigation As Object, referencedEntityType As Object) As String
Parameters
- navigation
- Object
- entityType
- Object
- referencedNavigation
- Object
- referencedEntityType
- Object
Returns
Applies to
Entity Framework