I am trying to write a linq to sql statement that will join a total of 3 tables. table 1 = users (userId) tabe 2 = userCourses (userId, CourseId), table 3 = courses(courseId).
This is what i am trying to do:
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
what is the proper syntax?