Shobdibo
come and learn something
Sunday, June 3, 2018
Group By in LINQ
List<Temp_LeftMenuCategory> categories = db.Temp_LeftMenuCategory.Where(e=>e.CatID==1 && e.Type== "Category").GroupBy(g => new { g.SubCatID })
.Select(g => g.FirstOrDefault())
.ToList();
Best Regards
#SSTEAM
we are making brotherhood
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment