var dupSalIdPersons = persons
.GroupBy(p => p.SalId)
.Where(g => g.Count() >= 2)
.SelectMany(g => g);
Linq select same id and remove other
-
06-08-2022 - |
문제
I need to filter this list.
I just want to have those person that have the same SalId and those must be at least two.
How do I do it?
해결책
제휴하지 않습니다 StackOverflow