MutableEntityTypeExtensions.AddIndexerProperty Methode

Definition

Fügt diesem Entitätstyp eine eigenschaft hinzu, die von einem Indexer gesichert wird.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddIndexerProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name, Type propertyType);
static member AddIndexerProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function AddIndexerProperty (entityType As IMutableEntityType, name As String, propertyType As Type) As IMutableProperty

Parameter

entityType
IMutableEntityType

Der Entitätstyp.

name
String

Der Name der hinzuzufügenden Eigenschaft.

propertyType
Type

Der Werttyp, den die Eigenschaft enthalten soll.

Gibt zurück

Die neu erstellte Eigenschaft.

Gilt für: