title: Is it possible to do create a generic Session.QueryOver<T>?
body: <p>Out of curiosity is it possible to do something like this using NHibernate 3?</p>
  
  <pre><code>public IQueryable&lt;T&gt; FindAll&lt;T&gt;()
  {
     return Session.QueryOver&lt;T&gt;().List().AsQueryable();
  }
  </code></pre>
  
  <p>I get a compilation error saying something like...</p>
  
  <p>The Type T must be a reference type in order to use it as a parameter T.</p>
  
  <p>I was wondering if I could create an extension method to Session.QueryOver to handle a generic type.</p>
  
  <p>I could replace this using something like</p>
  
  <pre><code>return Session.CreateCriteria(typeof (T)).List&lt;T&gt;().AsQueryable();
  </code></pre>
  
  <p>But was keen to use the features of the query api. Any ideas? maybe missing something obvious!!</p>