title: Entity Framework. Delete all rows in table
body: <p>How can I quickly remove all rows in the table using Entity Framework?</p>
  <p>I am currently using:</p>
  <pre class="lang-cs prettyprint-override"><code>var rows = from o in dataDb.Table
             select o;
  foreach (var row in rows)
  {
      dataDb.Table.Remove(row);
  }
  dataDb.SaveChanges();
  </code></pre>
  <p>However, it takes a long time to execute.</p>
  <p>Are there any alternatives?</p>