Friday, November 11, 2022

Grouping with max in linq ASP.NET

 var ProcessAudList = ProcessAudService.Where(x => x.Active == "Y")

.GroupBy(x => x.ProjectSeq, (key,g)=>g.OrderByDescending(e=>e.ProjectValue).First());

No comments:

Post a Comment