共用方式為


CoreStrings.AmbiguousOwnedNavigation(Object, Object) 方法

定義

無法判斷 '{entityTypeNavigationSpecification}' 與 '{otherEntityType}' 之間的關聯性擁有者,因為這兩種類型都標示為擁有。 手動設定擁有權,或使用 [NotMapped] 屬性或使用 'OnModelCreating' 中的 'EntityTypeBuilder.Ignore' 忽略對應的導覽。 如需詳細資訊和範例,請參閱 https://aka.ms/efcore-docs-owned

public static string AmbiguousOwnedNavigation (object entityType, object otherEntityType);
public static string AmbiguousOwnedNavigation (object entityTypeNavigationSpecification, 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 (entityType As Object, otherEntityType As Object) As String
Public Shared Function AmbiguousOwnedNavigation (entityTypeNavigationSpecification As Object, otherEntityType As Object) As String

參數

entityTypeentityTypeNavigationSpecification
Object
otherEntityType
Object

傳回

適用於