Knight Data Access Layer
Dropping Tables
Basic Tasks C# > Deleting Data > Dropping Tables

Dropping a table will remove the table from the database.

 

//Get the current instance of the helper

IDataHelper db = DataHelper.SessionFactory();

 

db.DropTable("Customers");

 

or

 

db.DropTable<Customer>();