Condividi tramite


MigrationBuilder.DropSequence(String, String) Metodo

Definizione

Compila un oggetto DropSequenceOperation per eliminare una sequenza esistente.

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)

Parametri

name
String

Nome della sequenza da eliminare.

schema
String

Schema che contiene la sequenza o null per 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