title: if-else equivalent via linq-to-sql query in where clause c#
body: <p>Basically I wanted to have an if-else statement in my linq to sql statement.</p>
  
  <pre><code>var query = from d in database
              if(x == y) {
                  where d.Attr = x
              }
              else {
                   where d.Attr = y
              }
              select d;
  </code></pre>
  
  <p>Any ideas?</p>