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
指示 属性是否表示集合。
返回
新创建的属性。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈