IMutableTypeBase.AddComplexProperty メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
AddComplexProperty(String, Boolean) |
この型に複合プロパティを追加します。 |
AddComplexProperty(MemberInfo, String, Boolean) |
この型に複合プロパティを追加します。 |
AddComplexProperty(String, Type, Type, String, Boolean) |
この型に複合プロパティを追加します。 |
AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean) |
この型に複合プロパティを追加します。 |
AddComplexProperty(String, Boolean)
この型に複合プロパティを追加します。
public Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty AddComplexProperty (string name, bool collection = false);
abstract member AddComplexProperty : string * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty
Public Function AddComplexProperty (name As String, Optional collection As Boolean = false) As IMutableComplexProperty
パラメーター
- name
- String
追加するプロパティの名前。
- collection
- Boolean
プロパティがコレクションを表すかどうかを示します。
戻り値
新しく作成されたプロパティ。
適用対象
AddComplexProperty(MemberInfo, String, Boolean)
この型に複合プロパティを追加します。
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty AddComplexProperty (System.Reflection.MemberInfo memberInfo, string? complexTypeName = default, bool collection = false);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")>]
abstract member AddComplexProperty : System.Reflection.MemberInfo * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty
override this.AddComplexProperty : System.Reflection.MemberInfo * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty
Public Overridable Function AddComplexProperty (memberInfo As MemberInfo, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false) As IMutableComplexProperty
パラメーター
- memberInfo
- MemberInfo
クラスの対応するメンバー。
- complexTypeName
- String
複合型の名前。
- collection
- Boolean
プロパティがコレクションを表すかどうかを示します。
戻り値
新しく作成されたプロパティ。
- 属性
適用対象
AddComplexProperty(String, Type, Type, String, Boolean)
この型に複合プロパティを追加します。
public Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty AddComplexProperty (string name, Type propertyType, Type complexType, string? complexTypeName = default, bool collection = false);
abstract member AddComplexProperty : string * Type * Type * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty
Public Function AddComplexProperty (name As String, propertyType As Type, complexType As Type, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false) As IMutableComplexProperty
パラメーター
- name
- String
追加するプロパティの名前。
- propertyType
- Type
プロパティの型。
- complexType
- Type
プロパティが保持する値の型。
- complexTypeName
- String
複合型の名前。
- collection
- Boolean
プロパティがコレクションを表すかどうかを示します。
戻り値
新しく作成されたプロパティ。
適用対象
AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean)
この型に複合プロパティを追加します。
public Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty AddComplexProperty (string name, Type propertyType, System.Reflection.MemberInfo memberInfo, Type complexType, string? complexTypeName = default, bool collection = false);
abstract member AddComplexProperty : string * Type * System.Reflection.MemberInfo * Type * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty
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) As IMutableComplexProperty
パラメーター
- name
- String
追加するプロパティの名前。
- propertyType
- Type
プロパティの型。
- complexType
- Type
プロパティが保持する値の型。
- complexTypeName
- String
複合型の名前。
- collection
- Boolean
プロパティがコレクションを表すかどうかを示します。
戻り値
新しく作成されたプロパティ。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework