IMutableTypeBase.AddComplexProperty 方法

定义

重载

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

属性类型。

memberInfo
MemberInfo

相应的 CLR 类型成员。

可以使用具有 String 参数和 Object 返回类型的索引器。

complexType
Type

属性将保留的值的类型。

complexTypeName
String

复杂类型的名称。

collection
Boolean

指示 属性是否表示集合。

返回

新创建的属性。

适用于