Compartir a través de


CoreStrings.InvalidRelationshipUsingDataAnnotations Método

Definición

Se ha especificado una relación no válida mediante los atributos [InverseProperty] y [ForeignKey]. Las navegaciones '{1_entityType}. {0_navigation}" y '{3_referencedEntityType}. {2_referencedNavigation}' están relacionados con el atributo [InverseProperty], pero los atributos [ForeignKey] especificados para ambas navegaciones tienen valores diferentes. Especifique las mismas propiedades o quite uno de los atributos.

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

Parámetros

navigation
Object
entityType
Object
referencedNavigation
Object
referencedEntityType
Object

Devoluciones

Se aplica a