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

指出 屬性是否代表集合。

傳回

新建立的屬性。

適用於