title: how to order by a dynamic column name in EntityFramework?
body: <p>I am trying to get following code working , This was working fine for MSSQL , but since i changed to use mySql it is not working</p>
  
  <pre><code>  records.Content = db.areas
                           .Where(x =&gt;   x.Name.Contains(filter)))
                           .OrderBy("dated desc") 
                           .ToList();
  </code></pre>
  
  <p>I get the error " Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information." </p>
  
  <pre><code>string colName = "datedD" ; 
  </code></pre>
  
  <p>how to order by depneding on colName variable ?<br>
  ` </p>