List<OverdueDataModle> list = (from a in ListModel where a.TreatmentPlanID == item.TreatmentPlanID orderby a.PlanStartDatetime descending select a).Take(Convert.ToInt32(item.OverdueCount)).ToList();

代码在上 take 是指定返回多少条数据