MutableEntityTypeExtensions.AddIndex Methode

Definition

Fügt diesem Entitätstyp einen Index hinzu.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
static member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
<Extension()>
Public Function AddIndex (entityType As IMutableEntityType, property As IMutableProperty) As IMutableIndex

Parameter

entityType
IMutableEntityType

Der Entitätstyp.

property
IMutableProperty

Die zu indizierte Eigenschaft.

Gibt zurück

Der neu erstellte Index.

Gilt für: