Compartir a través de


IReadOnlyEntityType.FindIndex Método

Definición

Sobrecargas

FindIndex(IReadOnlyProperty)

Obtiene el índice sin nombre definido en la propiedad especificada. Devuelve null si no se define dicho índice.

FindIndex(IReadOnlyList<IReadOnlyProperty>)

Obtiene el índice sin nombre definido en las propiedades especificadas. Devuelve null si no se define dicho índice.

FindIndex(String)

Obtiene el índice con el nombre especificado. Devuelve null si no existe dicho índice.

FindIndex(IReadOnlyProperty)

Obtiene el índice sin nombre definido en la propiedad especificada. Devuelve null si no se define dicho índice.

public virtual Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex? FindIndex (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
abstract member FindIndex : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
override this.FindIndex : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
Public Overridable Function FindIndex (property As IReadOnlyProperty) As IReadOnlyIndex

Parámetros

property
IReadOnlyProperty

Propiedad en la que se va a buscar el índice.

Devoluciones

Índice o null si no se encuentra ninguno.

Comentarios

Los índices con nombre no se devolverán aunque la lista de propiedades coincida.

Se aplica a

FindIndex(IReadOnlyList<IReadOnlyProperty>)

Obtiene el índice sin nombre definido en las propiedades especificadas. Devuelve null si no se define dicho índice.

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

Parámetros

properties
IReadOnlyList<IReadOnlyProperty>

Propiedades en las que se va a buscar el índice.

Devoluciones

Índice o null si no se encuentra ninguno.

Comentarios

Los índices con nombre no se devolverán aunque la lista de propiedades coincida.

Se aplica a

FindIndex(String)

Obtiene el índice con el nombre especificado. Devuelve null si no existe dicho índice.

public Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex? FindIndex (string name);
abstract member FindIndex : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
Public Function FindIndex (name As String) As IReadOnlyIndex

Parámetros

name
String

Nombre del índice que se va a buscar.

Devoluciones

Índice o null si no se encuentra ninguno.

Se aplica a