title: Linq query builder
body: <p>I have a Linq query:</p>
  
  <pre><code>from c in table where id = 1
  </code></pre>
  
  <p>but sometimes I need to use just </p>
  
  <pre><code>from c in table 
  </code></pre>
  
  <p>to recover all records.</p>
  
  <p>Is it possible to do something like the following:</p>
  
  <pre><code>From c in table
  if (!id == 0)
  {
      where id = 1
  }
  </code></pre>
  
  <p>or do if have to code it</p>
  
  <pre><code>if (!id == 0)
  {
      from c in table where id = id
  }
  else
  {
      from c in table 
  }
  </code></pre>