title: Dynamic QueryOver in nHibernate
body: <p>Similar to '<a href="https://stackoverflow.com/questions/41244/dynamic-linq-orderby">Dynamic LINQ OrderBy</a>' I would like to make a dynamic QueryOver-OrderBy. However, when I do this:</p>
  
  <pre><code>query.OrderBy(h =&gt; h.GetType().GetProperty(sort.Member).GetValue(h, null)).Asc
  </code></pre>
  
  <p>I get an exception which says:</p>
  
  <pre><code>Unrecognised method call in epression h.GetType().GetProperty(value(Domain.Model.Repository+&lt;&gt;c__DisplayClass15).sort.Member).GetValue(h, null)
  </code></pre>
  
  <p>Apparently, nHibernate has some trouble understanding what's going on. Does anyone have an idea on how to solve this particular issue?</p>