IMutableForeignKey.HasDependentToPrincipal 方法

定义

重载

HasDependentToPrincipal(MemberInfo)
已过时.

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

HasDependentToPrincipal(PropertyInfo)

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

HasDependentToPrincipal(String)
已过时.

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

HasDependentToPrincipal(MemberInfo)

Source:
IMutableForeignKey.cs
Source:
IMutableForeignKey.cs

注意

Use SetDependentToPrincipal

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

public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation HasDependentToPrincipal (System.Reflection.MemberInfo property);
[System.Obsolete("Use SetDependentToPrincipal")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation HasDependentToPrincipal (System.Reflection.MemberInfo property);
[System.Obsolete("Use SetDependentToPrincipal")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation? HasDependentToPrincipal (System.Reflection.MemberInfo? property);
abstract member HasDependentToPrincipal : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
[<System.Obsolete("Use SetDependentToPrincipal")>]
abstract member HasDependentToPrincipal : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
override this.HasDependentToPrincipal : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
Public Function HasDependentToPrincipal (property As MemberInfo) As IMutableNavigation
Public Overridable Function HasDependentToPrincipal (property As MemberInfo) As IMutableNavigation

参数

property
MemberInfo

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

返回

新创建的导航属性。

属性

适用于

HasDependentToPrincipal(PropertyInfo)

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

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

参数

property
PropertyInfo

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

返回

新创建的导航属性。

适用于

HasDependentToPrincipal(String)

Source:
IMutableForeignKey.cs
Source:
IMutableForeignKey.cs

注意

Use SetDependentToPrincipal

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

public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation HasDependentToPrincipal (string name);
[System.Obsolete("Use SetDependentToPrincipal")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation HasDependentToPrincipal (string name);
[System.Obsolete("Use SetDependentToPrincipal")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation? HasDependentToPrincipal (string? name);
abstract member HasDependentToPrincipal : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
[<System.Obsolete("Use SetDependentToPrincipal")>]
abstract member HasDependentToPrincipal : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
override this.HasDependentToPrincipal : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
Public Function HasDependentToPrincipal (name As String) As IMutableNavigation
Public Overridable Function HasDependentToPrincipal (name As String) As IMutableNavigation

参数

name
String

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

返回

新创建的导航属性。

属性

适用于