I'm trying to implement the SelectMany statement inside of the dynamic linq expresion parser, such that I could run a query like so:
Customers.Select("Orders.SelectMany(OrderItems)")
Such that it would be equivilent to the linq query:
Customers.Select(cust => cust.Orders.SelectMany(ord => ord.OrderItems))
I've tried adding SelectMany to the IEnumerableSignatures of System.Linq.Dynamic.ExpressionParser, but it looks like there's more I need to do.
I've looked into this codeplex project but didn't get anywhere with it: http://dynamiclinq.codeplex.com/ specificaly it wouldn't run my old queries and didn't have support for select or select many.
Ultimately I'd like to use all of the ienumerable linq statements inside of a dynamic linq statement.