MigrationBuilder.DropSequence(String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
DropSequenceOperation建置 以卸載現有的序列。
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)
參數
- name
- String
要卸載之序列的名稱。
- schema
- String
包含序列的架構,或使用 null
預設架構。
傳回
允許將批註加入至作業的產生器。
備註
如需詳細資訊和範例 ,請參閱資料庫移轉 。