Jazyk

CoreStrings.AmbiguousOwnedNavigation(Object, Object) Metoda

Definice

Nelze určit vlastníka relace mezi {entityTypeNavigationSpecification} a {otherEntityType}, protože oba typy byly označeny jako vlastněné. Buď ručně nakonfigurujte vlastnictví, nebo ignorujte odpovídající navigace pomocí atributu [NotMapped] nebo pomocí EntityTypeBuilder.Ignore v onModelCreating. Další https://aka.ms/efcore-docs-owned informace a příklady najdete v tématu.

public static string AmbiguousOwnedNavigation(object? entityTypeNavigationSpecification, object? otherEntityType);
public static string AmbiguousOwnedNavigation(object entityType, object otherEntityType);
public static string AmbiguousOwnedNavigation(object entityTypeNavigationSpecification, object otherEntityType);
static member AmbiguousOwnedNavigation : obj * obj -> string
static member AmbiguousOwnedNavigation : obj * obj -> string
Public Shared Function AmbiguousOwnedNavigation (entityTypeNavigationSpecification As Object, otherEntityType As Object) As String
Public Shared Function AmbiguousOwnedNavigation (entityType As Object, otherEntityType As Object) As String

Parametry

entityTypeNavigationSpecificationentityType
Object
otherEntityType
Object

Návraty

Platí pro