Compartir a través de


MutableEntityTypeExtensions.AddIndex Método

Definición

Agrega un índice a este tipo de entidad.

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

Parámetros

entityType
IMutableEntityType

El tipo de entidad.

property
IMutableProperty

Propiedad que se va a indexar.

Devoluciones

Índice recién creado.

Se aplica a