Aracılığıyla paylaş


ConventionEntityTypeExtensions.AddIndex Yöntem

Tanım

Bu varlık türüne bir dizin ekler.

public static Microsoft.EntityFrameworkCore.Metadata.IConventionIndex AddIndex (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, bool fromDataAnnotation = false);
static member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
<Extension()>
Public Function AddIndex (entityType As IConventionEntityType, property As IConventionProperty, Optional fromDataAnnotation As Boolean = false) As IConventionIndex

Parametreler

entityType
IConventionEntityType

Varlık türü.

property
IConventionProperty

Dizine eklenecek özellik.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmediğinden emin olun.

Döndürülenler

Yeni oluşturulan dizin.

Şunlara uygulanır