次の方法で共有


IConventionTypeBase.AddComplexProperty メソッド

定義

オーバーロード

AddComplexProperty(String, Boolean, Boolean)

この型にプロパティを追加します。

AddComplexProperty(MemberInfo, String, Boolean, Boolean)

この型にプロパティを追加します。

AddComplexProperty(String, Type, Type, String, Boolean, Boolean)

この型にプロパティを追加します。

AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean, Boolean)

この型にプロパティを追加します。

AddComplexProperty(String, Boolean, Boolean)

この型にプロパティを追加します。

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

パラメーター

name
String

追加するプロパティの名前。

collection
Boolean

プロパティがコレクションを表すかどうかを示します。

fromDataAnnotation
Boolean

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

戻り値

新しく作成されたプロパティ。

適用対象

AddComplexProperty(MemberInfo, String, Boolean, Boolean)

この型にプロパティを追加します。

[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexProperty (System.Reflection.MemberInfo memberInfo, string? complexTypeName = default, bool collection = false, bool fromDataAnnotation = false);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")>]
abstract member AddComplexProperty : System.Reflection.MemberInfo * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
override this.AddComplexProperty : System.Reflection.MemberInfo * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Overridable Function AddComplexProperty (memberInfo As MemberInfo, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false, Optional fromDataAnnotation As Boolean = false) As IConventionComplexProperty

パラメーター

memberInfo
MemberInfo

型の対応するメンバー。

complexTypeName
String

複合型の名前。

collection
Boolean

プロパティがコレクションを表すかどうかを示します。

fromDataAnnotation
Boolean

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

戻り値

新しく作成されたプロパティ。

属性

適用対象

AddComplexProperty(String, Type, Type, String, Boolean, Boolean)

この型にプロパティを追加します。

public Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexProperty (string name, Type propertyType, Type complexType, string? complexTypeName = default, bool collection = false, bool fromDataAnnotation = false);
abstract member AddComplexProperty : string * Type * Type * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Function AddComplexProperty (name As String, propertyType As Type, complexType As Type, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false, Optional fromDataAnnotation As Boolean = false) As IConventionComplexProperty

パラメーター

name
String

追加するプロパティの名前。

propertyType
Type

プロパティの型。

complexType
Type

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

complexTypeName
String

複合型の名前。

collection
Boolean

プロパティがコレクションを表すかどうかを示します。

fromDataAnnotation
Boolean

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

戻り値

新しく作成されたプロパティ。

適用対象

AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean, Boolean)

この型にプロパティを追加します。

public Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexProperty (string name, Type propertyType, System.Reflection.MemberInfo memberInfo, Type complexType, string? complexTypeName = default, bool collection = false, bool fromDataAnnotation = false);
abstract member AddComplexProperty : string * Type * System.Reflection.MemberInfo * Type * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Function AddComplexProperty (name As String, propertyType As Type, memberInfo As MemberInfo, complexType As Type, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false, Optional fromDataAnnotation As Boolean = false) As IConventionComplexProperty

パラメーター

name
String

追加するプロパティの名前。

propertyType
Type

プロパティの型。

memberInfo
MemberInfo

対応する CLR 型メンバー。

パラメーターとObject戻り値の型を持Stringつインデクサーを使用できます。

complexType
Type

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

complexTypeName
String

複合型の名前。

collection
Boolean

プロパティがコレクションを表すかどうかを示します。

fromDataAnnotation
Boolean

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

戻り値

新しく作成されたプロパティ。

適用対象