Share via


ForeignKeyIndexConvention.AreIndexedBy Método

Definição

Retorna um valor que indica se as propriedades fornecidas já estão cobertas por um índice existente.

protected virtual bool AreIndexedBy (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, bool unique, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> coveringIndexProperties, bool coveringIndexUnique);
abstract member AreIndexedBy : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> bool
override this.AreIndexedBy : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> bool
Protected Overridable Function AreIndexedBy (properties As IReadOnlyList(Of IConventionProperty), unique As Boolean, coveringIndexProperties As IReadOnlyList(Of IConventionProperty), coveringIndexUnique As Boolean) As Boolean

Parâmetros

properties
IReadOnlyList<IConventionProperty>

As propriedades a marcar.

unique
Boolean

Se o índice a ser criado deve ser exclusivo.

coveringIndexProperties
IReadOnlyList<IConventionProperty>

As propriedades de um índice existente.

coveringIndexUnique
Boolean

Se o índice existente é exclusivo.

Retornos

true se o índice existente abranger as propriedades fornecidas.

Aplica-se a