次の方法で共有


IConventionEntityTypeBuilder.GetTargetEntityTypeBuilder メソッド

定義

潜在的なナビゲーションのターゲットのビルダーを取得または作成します。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? GetTargetEntityTypeBuilder (Type targetClrType, System.Reflection.MemberInfo navigationInfo, bool createIfMissing = true, bool? targetShouldBeOwned = default, bool fromDataAnnotation = false);
abstract member GetTargetEntityTypeBuilder : Type * System.Reflection.MemberInfo * bool * Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Public Function GetTargetEntityTypeBuilder (targetClrType As Type, navigationInfo As MemberInfo, Optional createIfMissing As Boolean = true, Optional targetShouldBeOwned As Nullable(Of Boolean) = Nothing, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder

パラメーター

targetClrType
Type

ターゲットの CLR 型。

navigationInfo
MemberInfo

ナビゲーション プロパティ。

createIfMissing
Boolean

現在モデルにない場合にエンティティ型を作成する必要があるかどうか。

targetShouldBeOwned
Nullable<Boolean>

ターゲットを所有する必要があるかどうか。 null いずれかにできる場合は 。

fromDataAnnotation
Boolean

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

戻り値

エンティティ型ビルダーまたは null が見つからず、作成できない場合。

適用対象