标签:check record list unit nunit where ber 一对多 lis
var head = db.Queryable<InspectionRecord>().Where(w => w.CheckNumber == checkNumber && w.InspectionUnitName == inspectionUnit).ToList();
foreach (var h in head)
{
h.IllegalVarieties = db.Queryable<IllegalVarieties>().Where(w => h.Id == w.InspRecId).ToList();
}
res.Data = head;
标签:check record list unit nunit where ber 一对多 lis
原文地址:https://www.cnblogs.com/dreamsails/p/12611472.html