Skip to content

Instantly share code, notes, and snippets.

@kitlabcode
Created May 24, 2015 19:31
Show Gist options
  • Select an option

  • Save kitlabcode/c892c1fec1cbcf9da2b6 to your computer and use it in GitHub Desktop.

Select an option

Save kitlabcode/c892c1fec1cbcf9da2b6 to your computer and use it in GitHub Desktop.
LINQ Right Exclusive Join
var rightExclusiveJoin = Context.Artists.RightExclusiveJoin(Context.Albums, artist => artist.Id, album => album.ArtistId,
(artist, album) => new { ArtistName = artist != null ? artist.Name : "Not Found", AlbumName = album != null ? album.Name : "Not Found" });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment