5
Answers

asp.net core razor how to select a specific date in a sequence

Marius Vasile

Marius Vasile

3y
474
1

I have a sequence of dates. I can select the lowest with 

SEDateLow = await _context.IncidentSeqEvents.Include(s => s.IncidentSeqEventMain)
                                                                    .ThenInclude(s => s.InvestigationRCA)
                                                                    .Where(s => s.IncidentSeqEventMain.InvestigationRCA.OrgID == orgid && s.IncidentSeqEventMain.InvestigationRCA.IdINV == idinv)
                                                                    .Select(s => s.EventTime)
                                                                    .MinAsync();

How do I select the second date value in the row and then third and so on?

Answers (5)