Condividi tramite


MigrationBuilder.RenameIndex(String, String, String, String) Metodo

Definizione

Compila un oggetto RenameIndexOperation per rinominare un indice esistente.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation> RenameIndex (string name, string newName, string table = default, string schema = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation> RenameIndex (string name, string newName, string? table = default, string? schema = default);
abstract member RenameIndex : string * string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation>
override this.RenameIndex : string * string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation>
Public Overridable Function RenameIndex (name As String, newName As String, Optional table As String = Nothing, Optional schema As String = Nothing) As OperationBuilder(Of RenameIndexOperation)

Parametri

name
String

Nome dell'indice da rinominare.

newName
String

Nuovo nome per la colonna.

table
String

Tabella contenente l'indice.

schema
String

Schema contenente la tabella oppure null usare lo schema predefinito.

Restituisce

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

Commenti

Per altre informazioni ed esempi, vedere Migrazioni di database .

Si applica a