摘要:
同学们,看下面的代码段就明白了:一对多:public ICollection GetReportLookup(IEnumerable specialityID){var list = _Repo.All(p => specialityID.Contains(p.Speciality.Id)).ToList();return list;}多对一:public ICollection GetReportLookup(Guid specialityID){var list = _Repo.All(p => p.Specialitys.Contains(specialityID)).ToL 阅读全文