Knight Data Access Layer
Dropping Table VB.NET
Basic Tasks VB.NET > Database Commands > Dropping Table VB.NET

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

 

//Get the current instance of the helper  

Dim db As IDataHelper = DataHelper.SessionFactory()

 

db.DropTable(Of SalesPeople)()

 

OR

 

db.DropTable("Claims")