Sdílet prostřednictvím


CoreStrings.InvalidRelationshipUsingDataAnnotations Metoda

Definice

Byla zadána neplatná relace pomocí atributů [InverseProperty] a [ForeignKey]. Navigace {1_entityType}. {0_navigation} a {3_referencedEntityType}. {2_referencedNavigation} jsou spojené atributem [InverseProperty], ale atributy [ForeignKey] zadané pro obě navigace mají odlišné hodnoty. Zadejte stejné vlastnosti nebo odeberte jeden z atributů.

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

Parametry

navigation
Object
entityType
Object
referencedNavigation
Object
referencedEntityType
Object

Návraty

Platí pro