Delete all records from a table

databasesubsonic

How can I delete all records from a table using SubSonic?
The Delete method has three overloads, but each one expects some parameters.
And how can I delete records using a query (e.g. delete all records where column1 > 100)

Best Answer

The following will delete all rows from the TempTable which have an Id of greater than 56:

new Delete().From(TempTable.Schema)
  .Where(TempTable.Columns.Id).IsGreaterThan(56)
  .Execute();