次の方法で共有


IConventionTypeBaseBuilder.ComplexProperty メソッド

定義

オーバーロード

ComplexProperty(MemberInfo, Type, Boolean)

指定されたメンバー情報を使用して複合プロパティを構成するために使用できるオブジェクトを返します。 一致するプロパティが存在しない場合は、新しいプロパティが追加されます。

ComplexProperty(Type, String, Type, Boolean)

指定した名前で複合プロパティを構成するために使用できるオブジェクトを返します。 一致するプロパティが存在しない場合は、新しいプロパティが追加されます。

ComplexProperty(MemberInfo, Type, Boolean)

指定されたメンバー情報を使用して複合プロパティを構成するために使用できるオブジェクトを返します。 一致するプロパティが存在しない場合は、新しいプロパティが追加されます。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder? ComplexProperty (System.Reflection.MemberInfo memberInfo, Type? complexType = default, bool fromDataAnnotation = false);
abstract member ComplexProperty : System.Reflection.MemberInfo * Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder
Public Function ComplexProperty (memberInfo As MemberInfo, Optional complexType As Type = Nothing, Optional fromDataAnnotation As Boolean = false) As IConventionComplexPropertyBuilder

パラメーター

memberInfo
MemberInfo

PropertyInfoプロパティの またはFieldInfo

complexType
Type

ターゲット複合型。

fromDataAnnotation
Boolean

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

戻り値

null に存在する場合は、プロパティの構成に使用できるオブジェクト。それ以外の場合は 。

適用対象

ComplexProperty(Type, String, Type, Boolean)

指定した名前で複合プロパティを構成するために使用できるオブジェクトを返します。 一致するプロパティが存在しない場合は、新しいプロパティが追加されます。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder? ComplexProperty (Type propertyType, string propertyName, Type? complexType = default, bool fromDataAnnotation = false);
abstract member ComplexProperty : Type * string * Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder
Public Function ComplexProperty (propertyType As Type, propertyName As String, Optional complexType As Type = Nothing, Optional fromDataAnnotation As Boolean = false) As IConventionComplexPropertyBuilder

パラメーター

propertyType
Type

プロパティが保持する値の型。

propertyName
String

構成するプロパティの名前。

complexType
Type

ターゲット複合型。

fromDataAnnotation
Boolean

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

戻り値

null に存在する場合は、プロパティの構成に使用できるオブジェクト。それ以外の場合は 。

適用対象