Created
November 18, 2013 23:01
-
-
Save thnk2wn/7536950 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// left join as a safety precaution | |
jobAdPosts = (from b in SqlContext.JobBoards | |
join jap in SqlContext.JobAdPosts on new { JobBoardId = b.Id, JobAdId = vm.JobAd.Id } equals new { jap.JobBoardId, jap.JobAdId } into j1 | |
from jap in j1.DefaultIfEmpty() | |
where b.IsActive | |
orderby b.SortOrder ascending | |
select jap).ToList(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment