Answer the question
In order to leave comments, you need to log in
LINQ, GTOUP BY. How to choose a group with the maximum characteristic?
var modelData = (from data in сontext...
join ...
join ...
where ...
group new {a, b, c } by
new {d, e, f, Date}
into groups
where Выбрать ту группу у которой максимальная дата
select
new T
{
...
}
).ToList();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question