MutableEntityTypeExtensions.AddIndexerProperty(IMutableEntityType, String, Type) Yöntem

Tanım

Dizin oluşturma tarafından bu varlık türüne 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

Eklemek istediğiniz özelliğin adı.

propertyType
Type

Özelliğin tutacak olduğu değer türü.

Döndürülenler

IMutableProperty

Yeni oluşturulan özellik.

Şunlara uygulanır