共用方式為


IMutableForeignKey.HasDependentToPrincipal 方法

定義

多載

HasDependentToPrincipal(MemberInfo)
已淘汰.

在指向主體實體的相依實體類型上設定導覽屬性。

HasDependentToPrincipal(PropertyInfo)

在指向主體實體的相依實體類型上設定導覽屬性。

HasDependentToPrincipal(String)
已淘汰.

在指向主體實體的相依實體類型上設定導覽屬性。

HasDependentToPrincipal(MemberInfo)

警告

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)

警告

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傳遞會導致未定義導覽屬性。

傳回

新建立的導覽屬性。

屬性

適用於