合計 3 つのテーブルを結合する linq to sql ステートメントを作成しようとしています。表 1 = ユーザー (userId)、表 2 = userCourses (userId、CourseId)、表 3 = コース (courseId)。
これは私がやろうとしていることです:
from u in db.Users join uc in userCourse on u.userId = uc.Id
join c in course on uc.courseId = c.courseId
where u.userId = uc.userId
select c.name
適切な構文は何ですか?