Knight Data Access Layer
Truncating Tables VB.NET
Basic Tasks VB.NET > Deleting Data > Truncating Tables VB.NET

Truncating a table will delete all records in a table.

 

'Get the current instance of the helper

 

Dim db As IDataHelper = DataHelper.SessionFactory()

 

 

db.TruncateTable("Customers")

 

OR

 

db.TruncateTable(Of Customer)()