2

请帮助我尝试使用实体框架执行此操作,但我不知道该怎么做。

SELECT * FROM PJT.Notifications
WHERE ProjectProgrssID = ANY(
SELECT ProjectProgressID FROM PJT.ProjectProgress
WHERE ProjectID = ANY(
SELECT ProjectID FROM PJT.Projects WHERE UniversityID = 1))
4

1 回答 1

1

试试这个:

Projects.Where(p => p.UniversityId = 1)
    .SelectMany(pp => pp.ProjectProgress)
    .SelectMany(pr => pr.Notifications);
于 2013-02-12T07:12:48.327 回答