共用方式為


MigrationBuilder.DropSchema(String) 方法

定義

DropSchemaOperation建置 以卸載現有的架構。

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DropSchemaOperation> DropSchema (string name);
abstract member DropSchema : string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DropSchemaOperation>
override this.DropSchema : string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DropSchemaOperation>
Public Overridable Function DropSchema (name As String) As OperationBuilder(Of DropSchemaOperation)

參數

name
String

要卸載的架構名稱。

傳回

允許將批註加入至作業的產生器。

備註

如需詳細資訊和範例 ,請參閱資料庫移轉

適用於