Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to use Having in LINQ?



How to use Having in LINQ?..

Answer / 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

More LINQ Language-Integrated Query Interview Questions

Explain how you can retrieve a single row with LINQ?

1 Answers  


Explain why select clause comes after from clause in linq?

1 Answers  


What is system linq?

1 Answers  


How would you count the elements in a list or collection?

1 Answers  


What are the benefits of LINQ on dataset?

1 Answers   Winsol Solutions,


What is the query syntax?

1 Answers  


What is linq lambda expression?

1 Answers  


Why do we need linq?

1 Answers  


What is a linq cardiac monitor?

1 Answers  


When linq query is executed?

1 Answers  


Why is linq useful?

1 Answers  


Can we use linq with ado net?

1 Answers  


Categories