【发布时间】:2021-12-24 09:56:44
【问题描述】:
我有字段 PreviousDueDate 的映射
这里是
ForMember(x => x.LastExtendedDate,
opt =>
{
opt.PreCondition(aa => aa.CompanySurveyDueDates is {Count: > 0});
opt.MapFrom(aa =>
aa.CompanySurveyDueDates.Where(x => x.IsInitial == false).OrderByDescending(x => x.Id)
.FirstOrDefault().DueDate);
})
这是我使用Initial == false 获得的第一个值
但我需要获取 FirstOrDefault 的下一个值
我该怎么做?
【问题讨论】:
标签: c# asp.net linq asp.net-core