IConventionEntityType.AddIndex Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
AddIndex(IConventionProperty, Boolean) |
Aggiunge un indice a questo tipo di entità. |
AddIndex(IReadOnlyList<IConventionProperty>, Boolean) |
Aggiunge un indice senza nome a questo tipo di entità. |
AddIndex(IConventionProperty, String, Boolean) |
Aggiunge un indice denominato a questo tipo di entità. |
AddIndex(IReadOnlyList<IConventionProperty>, String, Boolean) |
Aggiunge un indice denominato a questo tipo di entità. |
AddIndex(IConventionProperty, Boolean)
Aggiunge un indice a questo tipo di entità.
public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? AddIndex (Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, bool fromDataAnnotation = false);
abstract member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
override this.AddIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Overridable Function AddIndex (property As IConventionProperty, Optional fromDataAnnotation As Boolean = false) As IConventionIndex
Parametri
- property
- IConventionProperty
Proprietà da indicizzare.
- fromDataAnnotation
- Boolean
Indica se la configurazione è stata specificata usando un'annotazione dati.
Restituisce
Indice appena creato.
Si applica a
AddIndex(IReadOnlyList<IConventionProperty>, Boolean)
Aggiunge un indice senza nome a questo tipo di entità.
public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, bool fromDataAnnotation = false);
abstract member AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Function AddIndex (properties As IReadOnlyList(Of IConventionProperty), Optional fromDataAnnotation As Boolean = false) As IConventionIndex
Parametri
- properties
- IReadOnlyList<IConventionProperty>
Proprietà da indicizzare.
- fromDataAnnotation
- Boolean
Indica se la configurazione è stata specificata usando un'annotazione dati.
Restituisce
Indice appena creato.
Si applica a
AddIndex(IConventionProperty, String, Boolean)
Aggiunge un indice denominato a questo tipo di entità.
public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? AddIndex (Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string name, bool fromDataAnnotation = false);
abstract member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
override this.AddIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Overridable Function AddIndex (property As IConventionProperty, name As String, Optional fromDataAnnotation As Boolean = false) As IConventionIndex
Parametri
- property
- IConventionProperty
Proprietà da indicizzare.
- name
- String
Nome dell'indice.
- fromDataAnnotation
- Boolean
Indica se la configurazione è stata specificata usando un'annotazione dati.
Restituisce
Indice appena creato.
Si applica a
AddIndex(IReadOnlyList<IConventionProperty>, String, Boolean)
Aggiunge un indice denominato a questo tipo di entità.
public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, string name, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, string name, bool fromDataAnnotation = false);
abstract member AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Function AddIndex (properties As IReadOnlyList(Of IConventionProperty), name As String, Optional fromDataAnnotation As Boolean = false) As IConventionIndex
Parametri
- properties
- IReadOnlyList<IConventionProperty>
Proprietà da indicizzare.
- name
- String
Nome dell'indice.
- fromDataAnnotation
- Boolean
Indica se la configurazione è stata specificata usando un'annotazione dati.
Restituisce
Indice appena creato.
Si applica a
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per