Share via


IMutableTypeBase.AddIndexerProperty(String, Type) Méthode

Définition

Ajoute une propriété sauvegardée par un indexeur à ce type.

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

Paramètres

name
String

Nom de la propriété à ajouter.

propertyType
Type

Type de valeur que la propriété contiendra.

Retours

Propriété nouvellement créée.

S’applique à