IMutableForeignKey.SetDependentToPrincipal 方法

定义

重载

SetDependentToPrincipal(MemberInfo)

设置指向主体实体的依赖实体类型的导航属性。

SetDependentToPrincipal(String)

设置指向主体实体的依赖实体类型的导航属性。

SetDependentToPrincipal(MemberInfo)

Source:
IMutableForeignKey.cs
Source:
IMutableForeignKey.cs
Source:
IMutableForeignKey.cs
Source:
IMutableForeignKey.cs
Source:
IMutableForeignKey.cs

设置指向主体实体的依赖实体类型的导航属性。

public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation SetDependentToPrincipal (System.Reflection.MemberInfo property);
public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation? SetDependentToPrincipal (System.Reflection.MemberInfo? property);
abstract member SetDependentToPrincipal : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
Public Function SetDependentToPrincipal (property As MemberInfo) As IMutableNavigation

参数

property
MemberInfo

依赖类型上的导航属性。 传递 null 将导致未定义导航属性。

返回

新设置的导航属性。

适用于

SetDependentToPrincipal(String)

Source:
IMutableForeignKey.cs
Source:
IMutableForeignKey.cs
Source:
IMutableForeignKey.cs
Source:
IMutableForeignKey.cs
Source:
IMutableForeignKey.cs

设置指向主体实体的依赖实体类型的导航属性。

public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation SetDependentToPrincipal (string name);
public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation? SetDependentToPrincipal (string? name);
abstract member SetDependentToPrincipal : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
Public Function SetDependentToPrincipal (name As String) As IMutableNavigation

参数

name
String

依赖类型上的导航属性的名称。 传递 null 将导致未定义导航属性。

返回

新设置的导航属性。

适用于