title: NHibernate QueryOver - Date Comparison expression
body: <p>Using a NHibernate QueryOver expression, how can I compare against a local variable?</p>
  
  <p>For example:</p>
  
  <p>[DB Table]</p>
  
  <pre><code>1 - 01/01/2011
  2 - 02/20/2011
  3 - 03/09/2011
  </code></pre>
  
  <p>I want a query to look like:</p>
  
  <pre><code>SELECT * FROM Table WHERE '03/01/2011' &gt;= DateColumn
  </code></pre>
  
  <p>Where '03/01/2011' is a variable I'm passing in.</p>
  
  <p>I tried:</p>
  
  <pre><code>DateTime myDate = new DateTime(2011, 3, 1);
  QueryOver.Of&lt;Table&gt;(() =&gt; tAlias).Where(() =&gt; myDate &gt;= tAlias.DateColumn)
  </code></pre>
  
  <p>However, this throws the following exception:</p>
  
  <blockquote>
    <p>Could not find property myDate</p>
  </blockquote>
  
  <p>Any ideas how to do this using a QueryOver expression? </p>