{"id":457,"date":"2017-03-14T07:51:46","date_gmt":"2017-03-14T07:51:46","guid":{"rendered":"http:\/\/waynenguyen.org\/dev\/?p=457"},"modified":"2017-03-14T07:51:46","modified_gmt":"2017-03-14T07:51:46","slug":"joining-on-multiple-fields-in-linq","status":"publish","type":"post","link":"https:\/\/bruceng.com\/dev\/?p=457","title":{"rendered":"Joining on multiple fields in LINQ"},"content":{"rendered":"<p>It&#8217;s possible to join on multiple fields in LINQ using anonymous type<\/p>\n<p>from item1 in data<\/p>\n<p>join item2 in data<\/p>\n<p>on new {item1.field1, item1.field2} equals new {item2.field1, item2.field2}<\/p>\n<p>select new {<\/p>\n<p>Field1 = item1.field1,<\/p>\n<p>Field2 = item2.field2<\/p>\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s possible to join on multiple fields in LINQ using anonymous type from item1 in data join item2 in data on new {item1.field1, item1.field2} equals new {item2.field1, item2.field2} select new { Field1 = item1.field1, Field2 = item2.field2 }<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[7,68],"class_list":["post-457","post","type-post","status-publish","format-standard","hentry","category-problems","tag-c","tag-linq"],"_links":{"self":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=457"}],"version-history":[{"count":1,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/457\/revisions"}],"predecessor-version":[{"id":458,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/457\/revisions\/458"}],"wp:attachment":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}