RuntimeTypeBase.AddComplexProperty メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
このエンティティ型に複合プロパティを追加します。
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
このエンティティ型に、任意のプロパティを含めることができるインデクサーと、特定のインデクサー プロパティに値が含まれているかどうかを判断するために使用できるメソッドがあるかどうかを示す値。
戻り値
新しく作成されたプロパティ。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示