IMutableEntityType.AddIndex Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
AddIndex(IMutableProperty) |
Adiciona um índice sem nome a esse tipo de entidade. |
AddIndex(IReadOnlyList<IMutableProperty>) |
Adiciona um índice sem nome a esse tipo de entidade. |
AddIndex(IMutableProperty, String) |
Adiciona um índice nomeado a esse tipo de entidade. |
AddIndex(IReadOnlyList<IMutableProperty>, String) |
Adiciona um índice nomeado a esse tipo de entidade. |
AddIndex(IMutableProperty)
Adiciona um índice sem nome a esse tipo de entidade.
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
abstract member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
override this.AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Overridable Function AddIndex (property As IMutableProperty) As IMutableIndex
Parâmetros
- property
- IMutableProperty
A propriedade a ser indexada.
Retornos
O índice recém-criado.
Aplica-se a
AddIndex(IReadOnlyList<IMutableProperty>)
Adiciona um índice sem nome a esse tipo de entidade.
public Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties);
abstract member AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Function AddIndex (properties As IReadOnlyList(Of IMutableProperty)) As IMutableIndex
Parâmetros
- properties
- IReadOnlyList<IMutableProperty>
As propriedades que devem ser indexadas.
Retornos
O índice recém-criado.
Aplica-se a
AddIndex(IMutableProperty, String)
Adiciona um índice nomeado a esse tipo de entidade.
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string name);
abstract member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
override this.AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Overridable Function AddIndex (property As IMutableProperty, name As String) As IMutableIndex
Parâmetros
- property
- IMutableProperty
A propriedade a ser indexada.
- name
- String
O nome do índice.
Retornos
O índice recém-criado.
Aplica-se a
AddIndex(IReadOnlyList<IMutableProperty>, String)
Adiciona um índice nomeado a esse tipo de entidade.
public Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties, string name);
abstract member AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Function AddIndex (properties As IReadOnlyList(Of IMutableProperty), name As String) As IMutableIndex
Parâmetros
- properties
- IReadOnlyList<IMutableProperty>
As propriedades que devem ser indexadas.
- name
- String
O nome do índice.
Retornos
O índice recém-criado.
Aplica-se a
Entity Framework