Aracılığıyla paylaş


MutableEntityTypeExtensions.AddIndexerProperty Yöntem

Tanım

Bu varlık türüne dizin oluşturucu tarafından yedeklenen bir özellik ekler.

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

Parametreler

entityType
IMutableEntityType

Varlık türü.

name
String

Eklenecek özelliğin adı.

propertyType
Type

Özelliğin barındıracağı değerin türü.

Döndürülenler

Yeni oluşturulan özellik.

Şunlara uygulanır