{"id":641,"date":"2020-12-21T03:42:42","date_gmt":"2020-12-20T14:42:42","guid":{"rendered":"https:\/\/blog.wiseowls.co.nz\/?p=641"},"modified":"2026-03-08T00:44:49","modified_gmt":"2026-03-07T11:44:49","slug":"linq-dynamic-join","status":"publish","type":"post","link":"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/","title":{"rendered":"LINQ: Dynamic Join"},"content":{"rendered":"\n<p>Suppose we&#8217;ve got two lists that we would like to join based on, say, common <code>Id<\/code> property. With LINQ the code would look something along these lines:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"csharp\" class=\"language-csharp\">var list1 = new List&lt;MyItem> {};\nvar list2 = new List&lt;MyItem> {};\nvar joined = list1.Join(list2, i => i.Id, j => j.Id, (k,l) => new {List1Item=k, List2Item=l});<\/code><\/pre>\n\n\n\n<p>resulting list of anonymous objects would have a property for each source object in the join. This is nothing new and <a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/api\/system.linq.enumerable.join?view=net-5.0#System_Linq_Enumerable_Join__4_System_Collections_Generic_IEnumerable___0__System_Collections_Generic_IEnumerable___1__System_Func___0___2__System_Func___1___2__System_Func___0___1___3__\">has been documented<\/a> pretty well.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">But what if<\/h2>\n\n\n\n<p>We don&#8217;t know how many lists we&#8217;d have to join? Now we&#8217;ve got a list of lists of our entities (List Inception?!): <code>List&lt;List&lt;MyItem>><\/code>. It becomes pretty obvious that we&#8217;d need to generate this code dynamically. We&#8217;ll run with <a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/csharp\/programming-guide\/concepts\/expression-trees\/\">LINQ Expression Trees<\/a> &#8211; surely there&#8217;s a way. Generally speaking, we&#8217;ll have to build an object (anonymous type would be ideal) with fields like so:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"json\" class=\"language-json\"><code>{<\/code>\n  <code>i0: items[0] \/\/ added on first run - we need to have at least two lists to join so it's safe to assume we'd<\/code>\n  <code>i1: items[1] \/\/ added on first run - you need to have at least two lists in your join array <\/code>\n  <code>... <\/code>\n  <code>iN: items[N] \/\/ added on each pass an joined with items[0] <\/code>\n<code>}<\/code><\/code><\/pre>\n\n\n\n<p>It is safe to assume that we need at least two lists for join to make sense, so we&#8217;d build the object above in two stages &#8211; first join two <code>MyItem <\/code>instances and get the structure going, Each subsequent join should append more <code>MyItem <\/code>instances to the resulting object until we&#8217;d get our result.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Picking types for the result<\/h2>\n\n\n\n<p>Now the problem is how we best define this object. The way <a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/csharp\/programming-guide\/classes-and-structs\/anonymous-types\">anonymous types<\/a> are declared, requires a type initialiser and a <code>new <\/code>keyword. We don&#8217;t have either of these at design time, so this method unfortunately will not work for us.  <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ExpandoObject<\/h2>\n\n\n\n<p>Another way to achieve decent developer experience with named object properties would be to use <code><a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/csharp\/programming-guide\/types\/using-type-dynamic\">dynamic<\/a><\/code> keyword &#8211; this is less than ideal as it effectively disables compiler static type checks. But we can keep going &#8211; so it&#8217;s an option here. To allow us to add properties at run time, we will use <a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/api\/system.dynamic.expandoobject?view=net-5.0\">ExpandoObject<\/a>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"csharp\" class=\"language-csharp\">static List&lt;ExpandoObject> Join&lt;TSource, TDest>(List&lt;List&lt;TSource>> items, Expression&lt;Func&lt;TSource, int>> srcAccessor, Expression&lt;Func&lt;ExpandoObject, int>> intermediaryAccessor, Expression&lt;Func&lt;TSource, TSource, ExpandoObject>> outerResultSelector)\n{\n\tvar joinLambdaType = typeof(ExpandoObject);            \n\tExpression&lt;Func&lt;ExpandoObject, TSource, ExpandoObject>> innerResultSelector = (expando, item) => expando.AddValue(item);\n\t\n\tvar joinMethod = typeof(Enumerable).GetMethods().Where(m => m.Name == \"Join\").First().MakeGenericMethod(typeof(TSource), typeof(TSource), typeof(int), joinLambdaType);\n\tvar toListMethod = typeof(Enumerable).GetMethods().Where(m => m.Name == \"ToList\").First().MakeGenericMethod(typeof(TDest));\n\n\tvar joinCall = Expression.Call(joinMethod,\n\t\t\t\t\t\t\tExpression.Constant(items[0]),\n\t\t\t\t\t\t\tExpression.Constant(items[1]),\n\t\t\t\t\t\t\tsrcAccessor,\n\t\t\t\t\t\t\tsrcAccessor,\n\t\t\t\t\t\t\touterResultSelector);\n\tjoinMethod = typeof(Enumerable).GetMethods().Where(m => m.Name == \"Join\").First().MakeGenericMethod(typeof(TDest), typeof(TSource), typeof(int), joinLambdaType); \/\/ from now on we'll be joining ExpandoObject with MyEntity\n\tfor (int i = 2; i &lt; items.Count; i++) \/\/ skip the first two\n\t{\n\t\tjoinCall =\n\t\t\tExpression.Call(joinMethod,\n\t\t\t\t\t\t\tjoinCall,\n\t\t\t\t\t\t\tExpression.Constant(items[i]),\n\t\t\t\t\t\t\tintermediaryAccessor,\n\t\t\t\t\t\t\tsrcAccessor,\n\t\t\t\t\t\t\tinnerResultSelector);\n\t}\n\n\tvar lambda = Expression.Lambda&lt;Func&lt;List&lt;ExpandoObject>>>(Expression.Call(toListMethod, joinCall));\n\treturn lambda.Compile()();\n}\n<\/code><\/pre>\n\n\n\n<p>The above block references two extension methods so that we can easier manupulate the ExpandoObjects:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"csharp\" class=\"language-csharp\">public static class Extensions \n {\n     public static ExpandoObject AddValue(this ExpandoObject expando, object value)\n     {\n         var dict = (IDictionary)expando;\n         var key = $\"i{dict.Count}\"; \/\/ that was the easiest way to keep track of what's already in. You would probably find a way to do it better\n         dict.Add(key, value);\n         return expando;\n     }\n     <code>public static ExpandoObject NewObject&lt;T>(this ExpandoObject expando, T value1, T value2) <\/code>\n     <code>{<\/code>\n     <code>     var dict = (IDictionary&lt;string, object>)expando;<\/code>\n          <code>dict.Add(\"i0\", value1);<\/code>\n          <code>dict.Add(\"i1\", value2);<\/code>\n          <code>return expando; <\/code>\n     <code>}<\/code>\n }<\/code><\/pre>\n\n\n\n<p>And with that, we should have no issue running a simple test like so:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"csharp\" class=\"language-csharp\">class Program\n{\n    class MyEntity\n    {\n        public int Id { get; set; }\n        public string Name { get; set; }\n\n        public MyEntity(int id, string name)\n        {\n            Id = id; Name = name;\n        }\n    }\n\n    static void Main()\n    {\n        List&lt;List&lt;MyEntity&gt;&gt; items = new List&lt;List&lt;MyEntity&gt;&gt; {\n            new List&lt;MyEntity&gt; {new MyEntity(1,\"test1_1\"), new MyEntity(2,\"test1_2\")},\n            new List&lt;MyEntity&gt; {new MyEntity(1,\"test2_1\"), new MyEntity(2,\"test2_2\")},\n            new List&lt;MyEntity&gt; {new MyEntity(1,\"test3_1\"), new MyEntity(2,\"test3_2\")},\n            new List&lt;MyEntity&gt; {new MyEntity(1,\"test4_1\"), new MyEntity(2,\"test4_2\")}\n        };\n\n        Expression&lt;Func&lt;MyEntity, MyEntity, ExpandoObject&gt;&gt; outerResultSelector = (i, j) =&gt; new ExpandoObject().NewObject(i, j); \/\/ we create a new ExpandoObject and populate it with first two items we join\n        Expression&lt;Func&lt;ExpandoObject, int&gt;&gt; intermediaryAccessor = (expando) =&gt; ((MyEntity)((IDictionary&lt;string, object&gt;)expando)[\"i0\"]).Id; \/\/ you could probably get rid of hardcoding this by, say, examining the first key in the dictionary\n        \n        dynamic cc = Join&lt;MyEntity, ExpandoObject&gt;(items, i =&gt; i.Id, intermediaryAccessor, outerResultSelector);\n\n        var test1_1 = cc[0].i1;\n        var test1_2 = cc[0].i2;\n\n        var test2_1 = cc[1].i1;\n        var test2_2 = cc[1].i2;\n    }\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Suppose we&#8217;ve got two lists that we would like to join based on, say, common Id property. With LINQ the code would look something along these lines: resulting list of anonymous objects would have a property for each source object in the join. This is nothing new and has been documented pretty well. But what &hellip; <a href=\"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;LINQ: Dynamic Join&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":381,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[11],"tags":[12],"class_list":["post-641","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev","tag-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>LINQ: Dynamic Join - Timur and associates<\/title>\n<meta name=\"description\" content=\"Dynamically joining an unknown number of lists with LINQ expression trees and IL Emit. List inception.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LINQ: Dynamic Join - Timur and associates\" \/>\n<meta property=\"og:description\" content=\"Dynamically joining an unknown number of lists with LINQ expression trees and IL Emit. List inception.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/\" \/>\n<meta property=\"og:site_name\" content=\"Timur and associates\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-20T14:42:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-07T11:44:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.wiseowls.co.nz\/wp-content\/uploads\/2020\/02\/ilya-pavlov-OqtafYT5kTw-unsplash-scaled-e1581852574473.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1282\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"timur\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@TimurKh\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2020\\\/12\\\/21\\\/linq-dynamic-join\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2020\\\/12\\\/21\\\/linq-dynamic-join\\\/\"},\"author\":{\"name\":\"timur\",\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/#\\\/schema\\\/person\\\/34d0ed30d573b5bc317ea990bd2e0c59\"},\"headline\":\"LINQ: Dynamic Join\",\"datePublished\":\"2020-12-20T14:42:42+00:00\",\"dateModified\":\"2026-03-07T11:44:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2020\\\/12\\\/21\\\/linq-dynamic-join\\\/\"},\"wordCount\":302,\"image\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2020\\\/12\\\/21\\\/linq-dynamic-join\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/ilya-pavlov-OqtafYT5kTw-unsplash-scaled-e1581852574473.jpg\",\"keywords\":[\"c#\"],\"articleSection\":[\"Development\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2020\\\/12\\\/21\\\/linq-dynamic-join\\\/\",\"url\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2020\\\/12\\\/21\\\/linq-dynamic-join\\\/\",\"name\":\"LINQ: Dynamic Join - Timur and associates\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2020\\\/12\\\/21\\\/linq-dynamic-join\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2020\\\/12\\\/21\\\/linq-dynamic-join\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/ilya-pavlov-OqtafYT5kTw-unsplash-scaled-e1581852574473.jpg\",\"datePublished\":\"2020-12-20T14:42:42+00:00\",\"dateModified\":\"2026-03-07T11:44:49+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/#\\\/schema\\\/person\\\/34d0ed30d573b5bc317ea990bd2e0c59\"},\"description\":\"Dynamically joining an unknown number of lists with LINQ expression trees and IL Emit. List inception.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2020\\\/12\\\/21\\\/linq-dynamic-join\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2020\\\/12\\\/21\\\/linq-dynamic-join\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2020\\\/12\\\/21\\\/linq-dynamic-join\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/ilya-pavlov-OqtafYT5kTw-unsplash-scaled-e1581852574473.jpg\",\"contentUrl\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/ilya-pavlov-OqtafYT5kTw-unsplash-scaled-e1581852574473.jpg\",\"width\":1920,\"height\":1282,\"caption\":\"Photo by Ilya Pavlov on Unsplash\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2020\\\/12\\\/21\\\/linq-dynamic-join\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LINQ: Dynamic Join\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/#website\",\"url\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/\",\"name\":\"Timur and associates\",\"description\":\"Notes of an IT contractor\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/#\\\/schema\\\/person\\\/34d0ed30d573b5bc317ea990bd2e0c59\",\"name\":\"timur\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/23d55e17d4f0990ee4d12bc6e5dcfb58a292934efd62a185756876379e780b16?s=96&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/23d55e17d4f0990ee4d12bc6e5dcfb58a292934efd62a185756876379e780b16?s=96&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/23d55e17d4f0990ee4d12bc6e5dcfb58a292934efd62a185756876379e780b16?s=96&r=pg\",\"caption\":\"timur\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/TimurKh\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LINQ: Dynamic Join - Timur and associates","description":"Dynamically joining an unknown number of lists with LINQ expression trees and IL Emit. List inception.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/","og_locale":"en_US","og_type":"article","og_title":"LINQ: Dynamic Join - Timur and associates","og_description":"Dynamically joining an unknown number of lists with LINQ expression trees and IL Emit. List inception.","og_url":"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/","og_site_name":"Timur and associates","article_published_time":"2020-12-20T14:42:42+00:00","article_modified_time":"2026-03-07T11:44:49+00:00","og_image":[{"width":1920,"height":1282,"url":"https:\/\/blog.wiseowls.co.nz\/wp-content\/uploads\/2020\/02\/ilya-pavlov-OqtafYT5kTw-unsplash-scaled-e1581852574473.jpg","type":"image\/jpeg"}],"author":"timur","twitter_card":"summary_large_image","twitter_creator":"@TimurKh","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/#article","isPartOf":{"@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/"},"author":{"name":"timur","@id":"https:\/\/blog.wiseowls.co.nz\/#\/schema\/person\/34d0ed30d573b5bc317ea990bd2e0c59"},"headline":"LINQ: Dynamic Join","datePublished":"2020-12-20T14:42:42+00:00","dateModified":"2026-03-07T11:44:49+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/"},"wordCount":302,"image":{"@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.wiseowls.co.nz\/wp-content\/uploads\/2020\/02\/ilya-pavlov-OqtafYT5kTw-unsplash-scaled-e1581852574473.jpg","keywords":["c#"],"articleSection":["Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/","url":"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/","name":"LINQ: Dynamic Join - Timur and associates","isPartOf":{"@id":"https:\/\/blog.wiseowls.co.nz\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/#primaryimage"},"image":{"@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.wiseowls.co.nz\/wp-content\/uploads\/2020\/02\/ilya-pavlov-OqtafYT5kTw-unsplash-scaled-e1581852574473.jpg","datePublished":"2020-12-20T14:42:42+00:00","dateModified":"2026-03-07T11:44:49+00:00","author":{"@id":"https:\/\/blog.wiseowls.co.nz\/#\/schema\/person\/34d0ed30d573b5bc317ea990bd2e0c59"},"description":"Dynamically joining an unknown number of lists with LINQ expression trees and IL Emit. List inception.","breadcrumb":{"@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/#primaryimage","url":"https:\/\/blog.wiseowls.co.nz\/wp-content\/uploads\/2020\/02\/ilya-pavlov-OqtafYT5kTw-unsplash-scaled-e1581852574473.jpg","contentUrl":"https:\/\/blog.wiseowls.co.nz\/wp-content\/uploads\/2020\/02\/ilya-pavlov-OqtafYT5kTw-unsplash-scaled-e1581852574473.jpg","width":1920,"height":1282,"caption":"Photo by Ilya Pavlov on Unsplash"},{"@type":"BreadcrumbList","@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2020\/12\/21\/linq-dynamic-join\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.wiseowls.co.nz\/"},{"@type":"ListItem","position":2,"name":"LINQ: Dynamic Join"}]},{"@type":"WebSite","@id":"https:\/\/blog.wiseowls.co.nz\/#website","url":"https:\/\/blog.wiseowls.co.nz\/","name":"Timur and associates","description":"Notes of an IT contractor","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.wiseowls.co.nz\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.wiseowls.co.nz\/#\/schema\/person\/34d0ed30d573b5bc317ea990bd2e0c59","name":"timur","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/23d55e17d4f0990ee4d12bc6e5dcfb58a292934efd62a185756876379e780b16?s=96&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/23d55e17d4f0990ee4d12bc6e5dcfb58a292934efd62a185756876379e780b16?s=96&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/23d55e17d4f0990ee4d12bc6e5dcfb58a292934efd62a185756876379e780b16?s=96&r=pg","caption":"timur"},"sameAs":["https:\/\/x.com\/TimurKh"]}]}},"_links":{"self":[{"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/posts\/641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/comments?post=641"}],"version-history":[{"count":10,"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/posts\/641\/revisions"}],"predecessor-version":[{"id":1050,"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/posts\/641\/revisions\/1050"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/media\/381"}],"wp:attachment":[{"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/media?parent=641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/categories?post=641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/tags?post=641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}