Home
Options

Dynamic issues

Hello!
I got stuck when using Dynamic LINQ library operators. I grouped a local sequence of anonymous type using dynamic GroupBy. But afterwards I want to make another query for the resulting sequence using the Aggregate function. And at this point I get in trouble because dynamic version of GroupBy returns a non-generic IQueryable interface, so it won't let me write usual non-dynamic queries.
When I try to write another dynamic query with Select, I'm getting an error, because the selector contains a function call with a lambda expression. Maybe it's about building lambda expressions dynamically, but I don't have a clear understanding of this topic. How to make it work?
Thanks.

Comments

  • Options
    I'm actually using the string-based Dynamic Expression API. I discovered that it's functions are designed for returning non-generic IQueryable by calling source.Provider.CreateQuery(...) (non-generic version of CreateQuery). So I need a similar library which functions would return generics. Where can I find one?
Sign In or Register to comment.