title: How to delete all records in a table using SubSonic 3
body: <p>I'm trying to delete all the records from a table using this approach:</p>
  
  <pre><code>new Delete&lt;Contact&gt;().Execute();
  </code></pre>
  
  <p>This statement fails with a <code>NullReferenceException</code> in <code>BuildDeleteStatement</code> method at line:</p>
  
  <pre><code>sb.Append(query.FromTables[0].QualifiedName);
  </code></pre>
  
  <p>Because, although FromTables has one entry, it is set to null. I also tried this but it doesn't worked either:</p>
  
  <pre><code>var provider = ProviderFactory.GetProvider("MonitorData");
  new Delete&lt;Contact&gt;(provider).Execute();
  </code></pre>
  
  <p>What am I doing wrong?</p>