MigrationBuilder.DropTable(String, String) Metode

Definisi

DropTableOperation Menyusun untuk menghilangkan tabel yang sudah ada.

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

Parameter

name
String

Nama tabel yang akan dijatuhkan.

schema
String

Skema yang berisi tabel, atau null untuk menggunakan skema default.

Mengembalikan

Penyusun untuk memungkinkan anotasi ditambahkan ke operasi.

Keterangan

Lihat Migrasi database untuk informasi dan contoh selengkapnya.

Berlaku untuk