Share via


MigrationBuilder.DropSequence(String, String) Method

Definition

Builds a DropSequenceOperation to drop an existing sequence.

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

Parameters

name
String

The name of the sequence to drop.

schema
String

The schema that contains the sequence, or null to use the default schema.

Returns

A builder to allow annotations to be added to the operation.

Remarks

See Database migrations for more information and examples.

Applies to