IMutableEntityType.AddIndexerProperty(String, Type) Methode

Definition

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

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddIndexerProperty (string name, Type propertyType);
abstract member AddIndexerProperty : string * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
override this.AddIndexerProperty : string * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
Public Overridable Function AddIndexerProperty (name As String, propertyType As Type) As IMutableProperty

Parameter

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: