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

How to pass parameters to stored procedure using linq?

1 Answers  


What is parallel linq?

1 Answers  


Is linq to sql dead?

1 Answers  


What is the difference between LINQ and Lambda Expression?

1 Answers   Petranics Solutions,


Enlist the advantages of linq?

1 Answers  


Explain what are linq query expressions?

1 Answers  


What are conversion operators?

1 Answers  


Why do we use “contains"? Method for strings type functions?

1 Answers  


What are anonymous types?

1 Answers  


Can we use left join in linq?

1 Answers  


How to use Having in LINQ?

1 Answers  


Why cant datareader be returned from a web services method?

1 Answers  


Categories