語言

CoreStrings.AmbiguousOwnedNavigation(Object, Object) 方法

定義

無法確定「{entityTypeNavigationSpecification}' 與 '{otherEntityType}' 之間關係的擁有者,因為這兩種類型都被標記為擁有。 你可以手動設定擁有權,或是用 [NotMapped] 屬性忽略對應的導航,或是在 “OnModelCreating” 裡使用 'EntityTypeBuilder.Ignore' 來操作。 如需詳細資訊和範例,請參閱 https://aka.ms/efcore-docs-owned。

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

參數

entityTypeNavigationSpecificationentityType
Object
otherEntityType
Object

傳回

適用於