我在强类型列表中添加了多个记录。我想要基于AssessmentID列的所有列的不同记录,所以例如我得到两条记录,其中AssessmentID = 2455所以我想在列表中选择2455
var query_b = (from b in activeAssessmentWithRemidiation
where ((b.AssessorID == ContextSession.StaffID) || (b.ModuleLead == ContextSession.StaffID) || (b.SeniorStaffID == ContextSession.StaffID)) && b.ClinicalSupervisorCheck == true
select b).ToList();
var filteredList = query_b.GroupBy(x => x.AssessmentID)
.Select(i=>i.First()).ToList();
以及没有人可以回答这个问题,因此他们将其标记为重复,无论如何我发现并且如下所示;
$('html, body').animate({
scrollTop: $("#establishment3").offset().top - 100
}, 2000);