I wanted to transform the string "Employee.Orders.OrderID" in the linq expression: "employee.Orders.Select(order => order.OrderID)".
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.
"Order" is a collection of orders in the class "Employee". "OrderID" is a property of the class "Order".
In other words, I want to transform this;
string path = "Employee.Orders.OrderID";
Into this;
Expression<Func<Employee, object>> exp = employee => employee.Orders.Select(order => order.OrderID);