Answer Posted / Yogesh Rani
Having can be used in LINQ just like it is used in SQL. It filters groups based on some condition. Here's an example: `var query = from c in context.Customers group c by c.City into cityGroup select new { City = cityGroup.Key, Count = cityGroup.Count() }.Where(g => g.Count > 10);`
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category