Condividi tramite


ForeignKeyIndexConvention.AreIndexedBy Metodo

Definizione

Restituisce un valore che indica se le proprietà indicate sono già coperte da un indice esistente.

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

Parametri

properties
IReadOnlyList<IConventionProperty>

Proprietà da controllare.

unique
Boolean

Indica se l'indice da creare deve essere univoco.

coveringIndexProperties
IReadOnlyList<IConventionProperty>

Proprietà di un indice esistente.

coveringIndexUnique
Boolean

Indica se l'indice esistente è univoco.

Restituisce

true se l'indice esistente copre le proprietà indicate.

Si applica a