Knight Data Access Layer
Dropping Table
Basic Tasks C# > Database Commands > Dropping Table

Dropping a table will remove all records and the table structure from the database.

 

//Get the current instance of the helper

IDataHelper db = DataHelper.SessionFactory();

 

db.DropTable<SalesPeople>();

 

OR

 

db.DropTable("Claims")