how can I make this sql query works with linqdatasource?
select tbl_WeekDays.WeekDay, tbl_DayTimes.TimeFrom, tbl_DayTimes.TimeTo from tbl_WeekDays
left join tbl_DayTimes on tbl_DayTimes.WeekDayId = tbl_WeekDays.WeekDayId
where tbl_WeekDays.classID = @id
I've read this answer but I couldn't understand the syntax used by linqdatasource join statement. any help would be great.