ConventionEntityTypeExtensions.AddIndex(IConventionEntityType, IConventionProperty, Boolean) 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 dizinini oluşturma özelliği.

fromDataAnnotation
Boolean

Yapılandırmanın veri ek açıklaması kullanılarak belirtilmemiş olup olmadığını gösterir.

Döndürülenler

IConventionIndex

Yeni oluşturulan dizin.

Şunlara uygulanır