DropTable is used to drop an existing table in a database.
This method may needs some privilege according to the database product and its version.
Examples
Following section demonstrates DROP the table(s).
using(var exc = cn.Executer())
{
// by table alias
var t0 = new Orders().AsQueryable();
var t1 = new OrderDetails().AsQueryable();
exc.DropTable(t0); // single
exc.DropTable(new [] {t0, t1}); // multi
// by table type
exc.DropTable<Orders>();
// by table name
exc.DropTable("table1");
}
lYQxL5