次の方法で共有


IConventionEntityTypeBuilder.GetOrCreateProperties メソッド

定義

オーバーロード

GetOrCreateProperties(IEnumerable<MemberInfo>, Boolean)

指定されたメンバーに一致する既存のプロパティを返すか、作成します。

GetOrCreateProperties(IReadOnlyList<String>, Boolean)

指定した名前の既存のプロパティを返すか、一致する CLR メンバーが見つかった場合は作成します。

GetOrCreateProperties(IEnumerable<MemberInfo>, Boolean)

指定されたメンバーに一致する既存のプロパティを返すか、作成します。

public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> GetOrCreateProperties (System.Collections.Generic.IEnumerable<System.Reflection.MemberInfo> memberInfos, bool fromDataAnnotation = false);
public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>? GetOrCreateProperties (System.Collections.Generic.IEnumerable<System.Reflection.MemberInfo>? memberInfos, bool fromDataAnnotation = false);
abstract member GetOrCreateProperties : seq<System.Reflection.MemberInfo> * bool -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>
Public Function GetOrCreateProperties (memberInfos As IEnumerable(Of MemberInfo), Optional fromDataAnnotation As Boolean = false) As IReadOnlyList(Of IConventionProperty)

パラメーター

memberInfos
IEnumerable<MemberInfo>

型のメンバー。

fromDataAnnotation
Boolean

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

戻り値

エンティティ型に存在する場合はプロパティの一覧。 null それ以外の場合は 。

適用対象

GetOrCreateProperties(IReadOnlyList<String>, Boolean)

指定した名前の既存のプロパティを返すか、一致する CLR メンバーが見つかった場合は作成します。

public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> GetOrCreateProperties (System.Collections.Generic.IReadOnlyList<string> propertyNames, bool fromDataAnnotation = false);
public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>? GetOrCreateProperties (System.Collections.Generic.IReadOnlyList<string>? propertyNames, bool fromDataAnnotation = false);
abstract member GetOrCreateProperties : System.Collections.Generic.IReadOnlyList<string> * bool -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>
Public Function GetOrCreateProperties (propertyNames As IReadOnlyList(Of String), Optional fromDataAnnotation As Boolean = false) As IReadOnlyList(Of IConventionProperty)

パラメーター

propertyNames
IReadOnlyList<String>

プロパティの名前。

fromDataAnnotation
Boolean

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

戻り値

エンティティ型に存在する場合はプロパティの一覧。 null それ以外の場合は 。

適用対象