IMutableTypeBase.AddComplexIndexerProperty Methode

Definition

Fügt diesem Typ eine komplexe Eigenschaft hinzu, die von einem Indexer gesichert wird.

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty AddComplexIndexerProperty (string name, Type propertyType, Type complexType, string? complexTypeName = default, bool collection = false);
abstract member AddComplexIndexerProperty : string * Type * Type * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty
override this.AddComplexIndexerProperty : string * Type * Type * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty
Public Overridable Function AddComplexIndexerProperty (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 enthalten soll.

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: