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.
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