title: How to create a property (collection) expression selector from a string?
body: <p>I wanted to transform the string "<em>Employee.Orders.OrderID</em>" in the <strong>linq expression</strong>: "<strong><em>employee.Orders.Select(order => order.OrderID)</em></strong>".</p>
  
  <p>I already know how to do this in simple properties such as "Employee.FirstName" my question is how to do this in properties within a type within a collection.</p>
  
  <p>"Order" is a collection of orders in the class "Employee".
  "OrderID" is a property of the class "Order".</p>
  
  <p>In other words, I want to transform this;</p>
  
  <pre><code>string path = "Employee.Orders.OrderID";
  </code></pre>
  
  <p>Into this;</p>
  
  <pre><code>Expression&lt;Func&lt;Employee, object&gt;&gt; exp = employee =&gt; employee.Orders.Select(order =&gt; order.OrderID);
  </code></pre>