Share via


MutableEntityTypeExtensions.GetOrAddIndex Método

Definição

Sobrecargas

GetOrAddIndex(IMutableEntityType, IMutableProperty)

Obtém o índice definido na propriedade fornecida ou cria um novo se um ainda não estiver definido.

GetOrAddIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>)

Obtém o índice definido na propriedade fornecida ou cria um novo se um ainda não estiver definido.

GetOrAddIndex(IMutableEntityType, IMutableProperty)

Obtém o índice definido na propriedade fornecida ou cria um novo se um ainda não estiver definido.

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

Parâmetros

entityType
IMutableEntityType

O tipo de entidade ao qual obter ou adicionar o índice.

property
IMutableProperty

A propriedade a ser indexada.

Retornos

O índice existente ou recém-criado.

Aplica-se a

GetOrAddIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>)

Obtém o índice definido na propriedade fornecida ou cria um novo se um ainda não estiver definido.

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

Parâmetros

entityType
IMutableEntityType

O tipo de entidade ao qual obter ou adicionar o índice.

properties
IReadOnlyList<IMutableProperty>

As propriedades a serem indexadas.

Retornos

O índice existente ou recém-criado.

Aplica-se a