var result = Myentity.Person .Where(x=>x.per==123) .GroupBy(x=>new {x.a, x.b}) .Select(grp=> grp.OrderByDescending(x=> x.d).First()) .ToList();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)