title: OrderBy with Dynamic Linq and one to many relationship in EF
body: <p>I'd like to implement a module for filtering and paging. I understand that to suceed I had to use Dynamic Linq or Reflection, so I started trying to make it work .. but since the field that contains the text to be filtered in a one to many relationship EF not like it.</p>
  
  <p>This code work fine .. but is static :</p>
  
  <pre><code>List&lt;Domain.Entities.Action&gt; actions = db.Actions.Include("Menus").Include("ActionDetails")
                                                   .Where(x =&gt; x.ActionDetails.Any(y =&gt; y.Language.Culture == _currentCulture))
                                                   .OrderBy(y =&gt; y.ActionDetails.Select(z =&gt; z.Title).Max()).Skip((pager.Index - 1) * pager.Take).Take(pager.Take)
                                                   .ToList();
  </code></pre>
  
  <p>I want the </p>
  
  <blockquote>
    <p>.Select(z => z.Title)</p>
  </blockquote>
  
  <p>Dynamic..</p>
  
  <p>Can someone help me .. I Try a lot of thing .. but no sucess</p>
  
  <p>Ju.</p>