SqlServerMigrationsSqlGenerator.Rename Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework