共用方式為


CoreStrings.AmbiguousOneToOneRelationship(Object, Object) 方法

定義

無法判斷 '{dependentToPrincipalNavigationSpecification}' 與 '{principalToDependentNavigationSpecification}' 之間的一對一關聯性。 若要識別關聯性的相依端,請設定外鍵屬性。 如果這些導覽不應該屬於相同的關聯性,請透過 'OnModelCreating' 中的個別方法鏈結獨立設定它們。 如需更多詳細資料,請參閱 https://go.microsoft.com/fwlink/?LinkId=724062 \(英文\)。

public static string AmbiguousOneToOneRelationship (object dependentToPrincipalNavigationSpecification, object principalToDependentNavigationSpecification);
public static string AmbiguousOneToOneRelationship (object? dependentToPrincipalNavigationSpecification, object? principalToDependentNavigationSpecification);
static member AmbiguousOneToOneRelationship : obj * obj -> string
Public Shared Function AmbiguousOneToOneRelationship (dependentToPrincipalNavigationSpecification As Object, principalToDependentNavigationSpecification As Object) As String

參數

dependentToPrincipalNavigationSpecification
Object
principalToDependentNavigationSpecification
Object

傳回

適用於