Compartir a través de


IConventionEntityTypeBuilder.CanHaveIndex Método

Definición

Devuelve un valor que indica si y el índice de las propiedades especificadas se pueden agregar a este tipo de entidad.

public bool CanHaveIndex (System.Collections.Generic.IReadOnlyList<string> propertyNames, bool fromDataAnnotation = false);
abstract member CanHaveIndex : System.Collections.Generic.IReadOnlyList<string> * bool -> bool
Public Function CanHaveIndex (propertyNames As IReadOnlyList(Of String), Optional fromDataAnnotation As Boolean = false) As Boolean

Parámetros

propertyNames
IReadOnlyList<String>

Nombres de las propiedades que componen el índice.

fromDataAnnotation
Boolean

Indica si la configuración se especificó mediante una anotación de datos.

Devoluciones

true si se puede agregar el índice.

Se aplica a