Condividi tramite


MutableEntityTypeExtensions.GetOrAddIndex Metodo

Definizione

Overload

GetOrAddIndex(IMutableEntityType, IMutableProperty)

Ottiene l'indice definito nella proprietà specificata o crea un nuovo oggetto se non è già definito.

GetOrAddIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>)

Ottiene l'indice definito nella proprietà specificata o crea un nuovo oggetto se non è già definito.

GetOrAddIndex(IMutableEntityType, IMutableProperty)

Ottiene l'indice definito nella proprietà specificata o crea un nuovo oggetto se non è già definito.

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

Parametri

entityType
IMutableEntityType

Tipo di entità a cui ottenere o aggiungere l'indice.

property
IMutableProperty

Proprietà da indicizzare.

Restituisce

Indice esistente o appena creato.

Si applica a

GetOrAddIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>)

Ottiene l'indice definito nella proprietà specificata o crea un nuovo oggetto se non è già definito.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableIndex GetOrAddIndex (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties);
static member GetOrAddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
<Extension()>
Public Function GetOrAddIndex (entityType As IMutableEntityType, properties As IReadOnlyList(Of IMutableProperty)) As IMutableIndex

Parametri

entityType
IMutableEntityType

Tipo di entità a cui ottenere o aggiungere l'indice.

properties
IReadOnlyList<IMutableProperty>

Proprietà da indicizzare.

Restituisce

Indice esistente o appena creato.

Si applica a