Share via


RuntimeTypeBase.AddComplexProperty メソッド

定義

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

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeComplexProperty AddComplexProperty (string name, Type clrType, string targetTypeName, Type targetType, System.Reflection.PropertyInfo? propertyInfo = default, System.Reflection.FieldInfo? fieldInfo = default, Microsoft.EntityFrameworkCore.PropertyAccessMode propertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField, bool nullable = false, bool collection = false, Microsoft.EntityFrameworkCore.ChangeTrackingStrategy changeTrackingStrategy = Microsoft.EntityFrameworkCore.ChangeTrackingStrategy.Snapshot, System.Reflection.PropertyInfo? indexerPropertyInfo = default, bool propertyBag = false);
abstract member AddComplexProperty : string * Type * string * Type * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode * bool * bool * Microsoft.EntityFrameworkCore.ChangeTrackingStrategy * System.Reflection.PropertyInfo * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeComplexProperty
override this.AddComplexProperty : string * Type * string * Type * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode * bool * bool * Microsoft.EntityFrameworkCore.ChangeTrackingStrategy * System.Reflection.PropertyInfo * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeComplexProperty
Public Overridable Function AddComplexProperty (name As String, clrType As Type, targetTypeName As String, targetType As Type, Optional propertyInfo As PropertyInfo = Nothing, Optional fieldInfo As FieldInfo = Nothing, Optional propertyAccessMode As PropertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField, Optional nullable As Boolean = false, Optional collection As Boolean = false, Optional changeTrackingStrategy As ChangeTrackingStrategy = Microsoft.EntityFrameworkCore.ChangeTrackingStrategy.Snapshot, Optional indexerPropertyInfo As PropertyInfo = Nothing, Optional propertyBag As Boolean = false) As RuntimeComplexProperty

パラメーター

name
String

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

clrType
Type

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

targetTypeName
String

追加する複合型の名前。

targetType
Type

この複合型のインスタンスを表すために使用される CLR 型。

propertyInfo
PropertyInfo

対応する CLR プロパティまたは null シャドウ プロパティ。

fieldInfo
FieldInfo

対応する CLR フィールドまたは null シャドウ プロパティ。

propertyAccessMode
PropertyAccessMode

PropertyAccessModeこのプロパティに使用される 。

nullable
Boolean

このプロパティに を含 nullめることができるかどうかを示す 値。

collection
Boolean

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

changeTrackingStrategy
ChangeTrackingStrategy

この複合型の変更追跡戦略。

indexerPropertyInfo
PropertyInfo

PropertyInfo関連付けられた CLR 型のインデクサー (存在する場合) の 。

propertyBag
Boolean

このエンティティ型に、任意のプロパティを含めることができるインデクサーと、特定のインデクサー プロパティに値が含まれているかどうかを判断するために使用できるメソッドがあるかどうかを示す値。

戻り値

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

適用対象