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.
With a LinQ statement it should look something like following code. Please mind that this is written out of my head and not tested. It's a mere indication of how it should look, not a working solution.
Hope this gets you on the way.