Udostępnij za pośrednictwem


IMutableTypeBase.AddComplexProperty Metoda

Definicja

Przeciążenia

AddComplexProperty(String, Boolean)

Dodaje do tego typu właściwość złożoną.

AddComplexProperty(MemberInfo, String, Boolean)

Dodaje do tego typu właściwość złożoną.

AddComplexProperty(String, Type, Type, String, Boolean)

Dodaje do tego typu właściwość złożoną.

AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean)

Dodaje do tego typu właściwość złożoną.

AddComplexProperty(String, Boolean)

Dodaje do tego typu właściwość złożoną.

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

Parametry

name
String

Nazwa właściwości do dodania.

collection
Boolean

Wskazuje, czy właściwość reprezentuje kolekcję.

Zwraca

Nowo utworzona właściwość.

Dotyczy

AddComplexProperty(MemberInfo, String, Boolean)

Dodaje do tego typu właściwość złożoną.

[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

Parametry

memberInfo
MemberInfo

Odpowiedni element członkowski w klasie.

complexTypeName
String

Nazwa typu złożonego.

collection
Boolean

Wskazuje, czy właściwość reprezentuje kolekcję.

Zwraca

Nowo utworzona właściwość.

Atrybuty

Dotyczy

AddComplexProperty(String, Type, Type, String, Boolean)

Dodaje do tego typu właściwość złożoną.

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

Parametry

name
String

Nazwa właściwości do dodania.

propertyType
Type

Typ właściwości.

complexType
Type

Typ wartości, która będzie przechowywana przez właściwość.

complexTypeName
String

Nazwa typu złożonego.

collection
Boolean

Wskazuje, czy właściwość reprezentuje kolekcję.

Zwraca

Nowo utworzona właściwość.

Dotyczy

AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean)

Dodaje do tego typu właściwość złożoną.

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

Parametry

name
String

Nazwa właściwości do dodania.

propertyType
Type

Typ właściwości.

memberInfo
MemberInfo

Odpowiedni element członkowski typu CLR.

Można użyć indeksatora z parametrem i Object typem zwrotnymString.

complexType
Type

Typ wartości, która będzie przechowywana przez właściwość.

complexTypeName
String

Nazwa typu złożonego.

collection
Boolean

Wskazuje, czy właściwość reprezentuje kolekcję.

Zwraca

Nowo utworzona właściwość.

Dotyczy