MigrationBuilder.RenameSequence(String, String, String, String) 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.
Builds a RenameSequenceOperation to rename an existing sequence.
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation> RenameSequence (string name, string schema = default, string newName = default, string newSchema = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation> RenameSequence (string name, string? schema = default, string? newName = default, string? newSchema = default);
abstract member RenameSequence : string * string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation>
override this.RenameSequence : string * string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation>
Public Overridable Function RenameSequence (name As String, Optional schema As String = Nothing, Optional newName As String = Nothing, Optional newSchema As String = Nothing) As OperationBuilder(Of RenameSequenceOperation)
Parameters
- name
- String
The name of the sequence to be renamed.
- schema
- String
The schema that contains the sequence, or null
to use the default schema.
- newName
- String
The new sequence name or null
if only the schema has changed.
- newSchema
- String
The new schema name or null
if only the name has changed.
Returns
A builder to allow annotations to be added to the operation.
Remarks
See Database migrations for more information and examples.
Applies to
Entity Framework