SqlServerMigrationsSqlGenerator.Rename Method

Definition

Overloads

Rename(String, String, MigrationCommandListBuilder)

Generates a rename.

Rename(String, String, String, MigrationCommandListBuilder)

Generates a rename.

Rename(String, String, MigrationCommandListBuilder)

Generates a rename.

protected virtual void Rename (string name, string newName, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Rename : string * string * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Rename : string * string * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Rename (name As String, newName As String, builder As MigrationCommandListBuilder)

Parameters

name
String

The old name.

newName
String

The new name.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Rename(String, String, String, MigrationCommandListBuilder)

Generates a rename.

protected virtual void Rename (string name, string newName, string type, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Rename (string name, string newName, string? type, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Rename : string * string * string * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Rename : string * string * string * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Rename (name As String, newName As String, type As String, builder As MigrationCommandListBuilder)

Parameters

name
String

The old name.

newName
String

The new name.

type
String

If not null, then appends literal for type of object being renamed (e.g. column or index.)

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to