我遇到语法问题。
public class Student
{
int StudentId;
string Name;
}
public class Course
{
int CourseId;
List<Student> Students;
}
int[] studentIds = { 5, 7, 12 };
List<Course> allCourses = myDataContext.Courses.ToList();
使用Lambda 表达式或查询表达式,如何获得包含数组中任何学生的所有课程的过滤列表studentIds
?