Created
May 16, 2011 19:05
-
-
Save danesparza/975083 to your computer and use it in GitHub Desktop.
LINQ join
This file contains hidden or 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
var shoppingLists = from user in Users | |
join listUsers in ShoppingListUsers | |
on user.UserId equals listUsers.UserId | |
join lists in ShoppingLists | |
on listUsers.ShoppingListId equals lists.ShoppingListId | |
where user.UserId == userToFind.UserId | |
select lists; | |
return shoppingLists; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment