IConventionForeignKey.SetDependentToPrincipal メソッド

定義

オーバーロード

SetDependentToPrincipal(MemberInfo, Boolean)

プリンシパル エンティティを指す依存エンティティ型のナビゲーション プロパティを設定します。

SetDependentToPrincipal(String, Boolean)

プリンシパル エンティティを指す依存エンティティ型のナビゲーション プロパティを設定します。

SetDependentToPrincipal(MemberInfo, Boolean)

プリンシパル エンティティを指す依存エンティティ型のナビゲーション プロパティを設定します。

public Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation SetDependentToPrincipal (System.Reflection.MemberInfo property, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation? SetDependentToPrincipal (System.Reflection.MemberInfo? property, bool fromDataAnnotation = false);
abstract member SetDependentToPrincipal : System.Reflection.MemberInfo * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation
Public Function SetDependentToPrincipal (property As MemberInfo, Optional fromDataAnnotation As Boolean = false) As IConventionNavigation

パラメーター

property
MemberInfo

依存する型のナビゲーション プロパティ。 を渡すと null 、ナビゲーション プロパティが定義されません。

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

戻り値

新しく作成されたナビゲーション プロパティ。

適用対象

SetDependentToPrincipal(String, Boolean)

プリンシパル エンティティを指す依存エンティティ型のナビゲーション プロパティを設定します。

public Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation SetDependentToPrincipal (string name, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation? SetDependentToPrincipal (string? name, bool fromDataAnnotation = false);
abstract member SetDependentToPrincipal : string * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation
Public Function SetDependentToPrincipal (name As String, Optional fromDataAnnotation As Boolean = false) As IConventionNavigation

パラメーター

name
String

依存する型のナビゲーション プロパティの名前。 を渡すと null 、ナビゲーション プロパティが定義されません。

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

戻り値

新しく作成されたナビゲーション プロパティ。

適用対象