Condividi tramite


MigrationBuilder.CreateIndex Metodo

Definizione

Overload

CreateIndex(String, String, String[], String, Boolean, String, Boolean[])

Compila un oggetto CreateIndexOperation per creare un nuovo indice composito (a più colonne).

CreateIndex(String, String, String, String, Boolean, String, Boolean[])

Compila un oggetto CreateIndexOperation per creare un nuovo indice.

CreateIndex(String, String, String[], String, Boolean, String)

Compila un oggetto CreateIndexOperation per creare un nuovo indice composito (a più colonne).

CreateIndex(String, String, String[], String, Boolean)
CreateIndex(String, String, String, String, Boolean)
CreateIndex(String, String, String, String, Boolean, String)

Compila un oggetto CreateIndexOperation per creare un nuovo indice.

CreateIndex(String, String, String[], String, Boolean, String, Boolean[])

Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs

Compila un oggetto CreateIndexOperation per creare un nuovo indice composito (a più colonne).

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation> CreateIndex (string name, string table, string[] columns, string? schema = default, bool unique = false, string? filter = default, bool[]? descending = default);
abstract member CreateIndex : string * string * string[] * string * bool * string * bool[] -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation>
override this.CreateIndex : string * string * string[] * string * bool * string * bool[] -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation>
Public Overridable Function CreateIndex (name As String, table As String, columns As String(), Optional schema As String = Nothing, Optional unique As Boolean = false, Optional filter As String = Nothing, Optional descending As Boolean() = Nothing) As OperationBuilder(Of CreateIndexOperation)

Parametri

name
String

Nome dell'indice.

table
String

Tabella contenente l'indice.

columns
String[]

Elenco ordinato di colonne indicizzate.

schema
String

Schema contenente la tabella oppure null usare lo schema predefinito.

unique
Boolean

Indica se l'indice applica l'univocità.

filter
String

Filtro da applicare all'indice o null per nessun filtro.

descending
Boolean[]

Set di valori che indica se ogni colonna di indice corrispondente ha un ordine di ordinamento decrescente. Se null, tutte le colonne avranno ordine crescente.

Restituisce

Generatore per consentire l'aggiunta di annotazioni all'operazione.

Commenti

Per altre informazioni ed esempi, vedere Migrazioni di database .

Si applica a

CreateIndex(String, String, String, String, Boolean, String, Boolean[])

Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs

Compila un oggetto CreateIndexOperation per creare un nuovo indice.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation> CreateIndex (string name, string table, string column, string? schema = default, bool unique = false, string? filter = default, bool[]? descending = default);
abstract member CreateIndex : string * string * string * string * bool * string * bool[] -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation>
override this.CreateIndex : string * string * string * string * bool * string * bool[] -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation>
Public Overridable Function CreateIndex (name As String, table As String, column As String, Optional schema As String = Nothing, Optional unique As Boolean = false, Optional filter As String = Nothing, Optional descending As Boolean() = Nothing) As OperationBuilder(Of CreateIndexOperation)

Parametri

name
String

Nome dell'indice.

table
String

Tabella contenente l'indice.

column
String

Colonna indicizzata.

schema
String

Schema contenente la tabella oppure null usare lo schema predefinito.

unique
Boolean

Indica se l'indice applica l'univocità.

filter
String

Filtro da applicare all'indice o null per nessun filtro.

descending
Boolean[]

Set di valori che indica se ogni colonna di indice corrispondente ha un ordine di ordinamento decrescente. Se null, tutte le colonne avranno ordine crescente. Se una matrice vuota, tutte le colonne avranno un ordine decrescente.

Restituisce

Generatore per consentire l'aggiunta di annotazioni all'operazione.

Commenti

Per altre informazioni ed esempi, vedere Migrazioni di database .

Si applica a

CreateIndex(String, String, String[], String, Boolean, String)

Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs

Compila un oggetto CreateIndexOperation per creare un nuovo indice composito (a più colonne).

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation> CreateIndex (string name, string table, string[] columns, string schema = default, bool unique = false, string filter = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation> CreateIndex (string name, string table, string[] columns, string? schema = default, bool unique = false, string? filter = default);
abstract member CreateIndex : string * string * string[] * string * bool * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation>
override this.CreateIndex : string * string * string[] * string * bool * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation>
Public Overridable Function CreateIndex (name As String, table As String, columns As String(), Optional schema As String = Nothing, Optional unique As Boolean = false, Optional filter As String = Nothing) As OperationBuilder(Of CreateIndexOperation)

Parametri

name
String

Nome dell'indice.

table
String

Tabella contenente l'indice.

columns
String[]

Elenco ordinato di colonne indicizzate.

schema
String

Schema contenente la tabella oppure null usare lo schema predefinito.

unique
Boolean

Indica se l'indice applica l'univocità.

filter
String

Filtro da applicare all'indice o null per nessun filtro.

Restituisce

Generatore per consentire l'aggiunta di annotazioni all'operazione.

Commenti

Per altre informazioni, vedere Migrazioni di database .

Si applica a

CreateIndex(String, String, String[], String, Boolean)

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation> CreateIndex (string name, string table, string[] columns, string schema = default, bool unique = false);
abstract member CreateIndex : string * string * string[] * string * bool -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation>
override this.CreateIndex : string * string * string[] * string * bool -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation>
Public Overridable Function CreateIndex (name As String, table As String, columns As String(), Optional schema As String = Nothing, Optional unique As Boolean = false) As OperationBuilder(Of CreateIndexOperation)

Parametri

name
String
table
String
columns
String[]
schema
String
unique
Boolean

Restituisce

Si applica a

CreateIndex(String, String, String, String, Boolean)

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation> CreateIndex (string name, string table, string column, string schema = default, bool unique = false);
abstract member CreateIndex : string * string * string * string * bool -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation>
override this.CreateIndex : string * string * string * string * bool -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation>
Public Overridable Function CreateIndex (name As String, table As String, column As String, Optional schema As String = Nothing, Optional unique As Boolean = false) As OperationBuilder(Of CreateIndexOperation)

Parametri

name
String
table
String
column
String
schema
String
unique
Boolean

Restituisce

Si applica a

CreateIndex(String, String, String, String, Boolean, String)

Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs
Origine:
MigrationBuilder.cs

Compila un oggetto CreateIndexOperation per creare un nuovo indice.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation> CreateIndex (string name, string table, string column, string schema = default, bool unique = false, string filter = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation> CreateIndex (string name, string table, string column, string? schema = default, bool unique = false, string? filter = default);
abstract member CreateIndex : string * string * string * string * bool * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation>
override this.CreateIndex : string * string * string * string * bool * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation>
Public Overridable Function CreateIndex (name As String, table As String, column As String, Optional schema As String = Nothing, Optional unique As Boolean = false, Optional filter As String = Nothing) As OperationBuilder(Of CreateIndexOperation)

Parametri

name
String

Nome dell'indice.

table
String

Tabella contenente l'indice.

column
String

Colonna indicizzata.

schema
String

Schema contenente la tabella oppure null usare lo schema predefinito.

unique
Boolean

Indica se l'indice applica l'univocità.

filter
String

Filtro da applicare all'indice o null per nessun filtro.

Restituisce

Generatore per consentire l'aggiunta di annotazioni all'operazione.

Commenti

Per altre informazioni, vedere Migrazioni di database .

Si applica a