IMutableTypeBase.AddComplexProperty Methode

Definition

Überlädt

AddComplexProperty(String, Boolean)

Fügt diesem Typ eine komplexe Eigenschaft hinzu.

AddComplexProperty(MemberInfo, String, Boolean)

Fügt diesem Typ eine komplexe Eigenschaft hinzu.

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

Fügt diesem Typ eine komplexe Eigenschaft hinzu.

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

Fügt diesem Typ eine komplexe Eigenschaft hinzu.

AddComplexProperty(String, Boolean)

Fügt diesem Typ eine komplexe Eigenschaft hinzu.

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

Parameter

name
String

Der Name der hinzuzufügenden Eigenschaft.

collection
Boolean

Gibt an, ob die -Eigenschaft eine Auflistung darstellt.

Gibt zurück

Die neu erstellte Eigenschaft.

Gilt für:

AddComplexProperty(MemberInfo, String, Boolean)

Fügt diesem Typ eine komplexe Eigenschaft hinzu.

[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

Parameter

memberInfo
MemberInfo

Das entsprechende Element der -Klasse.

complexTypeName
String

Der Name des komplexen Typs.

collection
Boolean

Gibt an, ob die -Eigenschaft eine Auflistung darstellt.

Gibt zurück

Die neu erstellte Eigenschaft.

Attribute

Gilt für:

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

Fügt diesem Typ eine komplexe Eigenschaft hinzu.

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

Parameter

name
String

Der Name der hinzuzufügenden Eigenschaft.

propertyType
Type

Der Eigenschaftentyp.

complexType
Type

Der Werttyp, den die Eigenschaft enthält.

complexTypeName
String

Der Name des komplexen Typs.

collection
Boolean

Gibt an, ob die -Eigenschaft eine Auflistung darstellt.

Gibt zurück

Die neu erstellte Eigenschaft.

Gilt für:

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

Fügt diesem Typ eine komplexe Eigenschaft hinzu.

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

Parameter

name
String

Der Name der hinzuzufügenden Eigenschaft.

propertyType
Type

Der Eigenschaftentyp.

memberInfo
MemberInfo

Das entsprechende CLR-Typmember.

Es kann ein Indexer mit einem String Parameter und Object einem Rückgabetyp verwendet werden.

complexType
Type

Der Werttyp, den die Eigenschaft enthält.

complexTypeName
String

Der Name des komplexen Typs.

collection
Boolean

Gibt an, ob die -Eigenschaft eine Auflistung darstellt.

Gibt zurück

Die neu erstellte Eigenschaft.

Gilt für: