Bahasa

CoreStrings.AmbiguousOwnedNavigation(Object, Object) Metode

Definisi

Tidak dapat menentukan pemilik untuk hubungan antara '{entityTypeNavigationSpecification}' dan '{otherEntityType}' karena kedua jenis telah ditandai sebagai milik. Konfigurasikan kepemilikan secara manual, atau abaikan navigasi yang sesuai menggunakan atribut [NotMapped] atau dengan menggunakan 'EntityTypeBuilder.Ignore' di 'OnModelCreating'. Lihat https://aka.ms/efcore-docs-owned untuk informasi dan contoh selengkapnya.

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

Parameter

entityTypeNavigationSpecificationentityType
Object
otherEntityType
Object

Mengembalikan

Berlaku untuk