IConventionTypeBase.AddComplexIndexerProperty Methode

Definition

Fügt diesem Typ eine eigenschaft hinzu, die von und indexer unterstützt wird.

public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexIndexerProperty (string name, Type propertyType, Type complexType, string? complexTypeName = default, bool collection = false, bool fromDataAnnotation = false);
abstract member AddComplexIndexerProperty : string * Type * Type * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
override this.AddComplexIndexerProperty : string * Type * Type * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Overridable Function AddComplexIndexerProperty (name As String, propertyType As Type, complexType As Type, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false, Optional fromDataAnnotation As Boolean = false) As IConventionComplexProperty

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.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Die neu erstellte Eigenschaft.

Gilt für: