CoreStrings.AmbiguousForeignKeyPropertyCandidates 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
“{firstDependentToPrincipalNavigationSpecification}”和“{firstPrincipalToDependentNavigationSpecification}”以及“{secondDependentToPrincipalNavigationSpecification}”与“{secondPrincipalToDependentNavigationSpecification}”之间的关系都可以使用 {foreignKeyProperties} 作为外键。 若要解决此问题,请在至少一个关系的“OnModelCreating”中显式配置外键属性。
public static string AmbiguousForeignKeyPropertyCandidates (object firstDependentToPrincipalNavigationSpecification, object firstPrincipalToDependentNavigationSpecification, object secondDependentToPrincipalNavigationSpecification, object secondPrincipalToDependentNavigationSpecification, object foreignKeyProperties);
public static string AmbiguousForeignKeyPropertyCandidates (object? firstDependentToPrincipalNavigationSpecification, object? firstPrincipalToDependentNavigationSpecification, object? secondDependentToPrincipalNavigationSpecification, object? secondPrincipalToDependentNavigationSpecification, object? foreignKeyProperties);
static member AmbiguousForeignKeyPropertyCandidates : obj * obj * obj * obj * obj -> string
Public Shared Function AmbiguousForeignKeyPropertyCandidates (firstDependentToPrincipalNavigationSpecification As Object, firstPrincipalToDependentNavigationSpecification As Object, secondDependentToPrincipalNavigationSpecification As Object, secondPrincipalToDependentNavigationSpecification As Object, foreignKeyProperties As Object) As String
参数
- firstDependentToPrincipalNavigationSpecification
- Object
- firstPrincipalToDependentNavigationSpecification
- Object
- secondDependentToPrincipalNavigationSpecification
- Object
- secondPrincipalToDependentNavigationSpecification
- Object
- foreignKeyProperties
- Object