CoreStrings.InvalidRelationshipUsingDataAnnotations 方法

定义

已使用 [InverseProperty] 和 [ForeignKey] 属性指定了无效关系。 导航“{1_entityType}”。{0_navigation}“和”{3_referencedEntityType}”。{2_referencedNavigation}' 与 [InverseProperty] 属性相关,但为两个导航指定的 [ForeignKey] 属性具有不同的值。 指定相同的属性或删除其中一个属性。

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

参数

navigation
Object
entityType
Object
referencedNavigation
Object
referencedEntityType
Object

返回

适用于