语言

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

返回

适用于