Partilhar via


RuntimeEntityType.FindIndex Método

Definição

Sobrecargas

FindIndex(IReadOnlyList<IReadOnlyProperty>)

Obtém o índice sem nome definido nas propriedades fornecidas. Retornará null se nenhum índice desse tipo for definido.

FindIndex(String)

Obtém o índice com o nome fornecido. Retornará null se não existir nenhum índice desse tipo.

FindIndex(IReadOnlyList<IReadOnlyProperty>)

Obtém o índice sem nome definido nas propriedades fornecidas. Retornará null se nenhum índice desse tipo for definido.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex? FindIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member FindIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex
override this.FindIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex
Public Overridable Function FindIndex (properties As IReadOnlyList(Of IReadOnlyProperty)) As RuntimeIndex

Parâmetros

properties
IReadOnlyList<IReadOnlyProperty>

As propriedades nas quais localizar o índice.

Retornos

O índice ou null se nenhum for encontrado.

Comentários

Índices nomeados não serão retornados mesmo que a lista de propriedades corresponda.

Aplica-se a

FindIndex(String)

Obtém o índice com o nome fornecido. Retornará null se não existir nenhum índice desse tipo.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex? FindIndex (string name);
abstract member FindIndex : string -> Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex
override this.FindIndex : string -> Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex
Public Overridable Function FindIndex (name As String) As RuntimeIndex

Parâmetros

name
String

O nome do índice.

Retornos

O índice ou null se nenhum for encontrado.

Aplica-se a