IMutableForeignKey.SetDependentToPrincipal 方法

定義

多載

SetDependentToPrincipal(MemberInfo)

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

SetDependentToPrincipal(String)

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

SetDependentToPrincipal(MemberInfo)

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

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)

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

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

傳回

新設定的導覽屬性。

適用於