How to achieve this using Dynamic Linq Join and Dynamic Linq SelectMany
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Desired result is in q and q2.
q shows combination of aggregates from different levels of grouping in one expression.
q2 uses calculated agg from prev levels and generates shorter SQL query.
q produces the following SQL query:
q2 produces shorter SQL query: