{"id":136,"date":"2010-08-03T00:21:00","date_gmt":"2010-08-03T00:21:00","guid":{"rendered":"http:\/\/madprogrammer76.wordpress.com\/2010\/08\/03\/creating-a-collection-of-top-level-class-from-base-level-class"},"modified":"2010-08-03T00:21:00","modified_gmt":"2010-08-03T00:21:00","slug":"creating-a-collection-of-top-level-class-from-base-level-class","status":"publish","type":"post","link":"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/","title":{"rendered":"Creating a Collection of Top-Level Class From Base Level Class"},"content":{"rendered":"<p>When you have a class inherit another class, sometimes you want the base level class to create a collection of the top-level class. \u00a0In this blog I will demonstrate some basic inheritance and a little reflection trick. \u00a0Note the examples are in C#, but could easily be done in VB.NET<\/p>\n<p>Why you may want to do this? \u00a0You may want to create a base class to handle all of your basic database functions from which your data layer classes will inherit to limit duplicate code. \u00a0In the base class you may create a &#8220;SELECT&#8221; function to return multiple rows of data. \u00a0The rows of data being returned are represented by the top-level class, for which you need a collection of the base level class.<\/p>\n<p>You need two components or classes. \u00a0The first is to create your base class from which you will inherit later on. \u00a0In the base class you will create a method to generate a collection of the top-level class. \u00a0The example being used is passing in the size of collection to be returned, but you could have it being auto generated based on number of database rows.<\/p>\n<pre style=\"background-color:#eeeeee;border:1px dashed rgb(153,153,153);color:black;font-family:Andale Mono,Lucida Console,Monaco,fixed,monospace;font-size:12px;line-height:14px;overflow:auto;width:100%;padding:5px;\"><code><br \/><br \/>public class BaseClass<br \/>{<br \/>    public String FirstName { get; set; }<br \/><br \/>    public BaseClass()<br \/>    {<br \/>    }<br \/><br \/>    public ArrayList getCollection(String className, int limit)    <br \/>    {<br \/>         ArrayList collection = new ArrayList();<br \/><br \/>        Type t = Type.GetType(className);\u00a0<br \/>        for ( int icount=0; icount &lt; limit; icount++ )<br \/>        {<br \/>             object clss = Activator.CreateInstance(t); <br \/>             ((BaseClass)clss).FirstName = \"Bob\";\u00a0<br \/>             collection.Add(clss);                      <br \/>         }<br \/><br \/>         return collection;<br \/>    }<br \/>}<br \/><br \/><\/code><\/pre>\n<p>The next part is to create a class that inherits the base class. \u00a0From this new class we are going to make a public function that will return the requested collection. \u00a0Remember; you could be returning class collection of data rows or another single purpose that could be represented by a class.<\/p>\n<pre style=\"background-color:#eeeeee;border:1px dashed rgb(153,153,153);color:black;font-family:Andale Mono,Lucida Console,Monaco,fixed,monospace;font-size:12px;line-height:14px;overflow:auto;width:100%;padding:5px;\"><code><br \/>public class ClassInherit : BaseClass<br \/>{<br \/>     public ClassInherit()<br \/>     {<br \/>     }<br \/><br \/>     public ArrayList BuildCollection()<br \/>     {<br \/>         return getCollection(\"ClassInherit\", 4);<br \/>     }<br \/>}<br \/><br \/><\/code><\/pre>\n<p>If you have questions regarding this blog or the purpose of this blog, please feel free to contact me at <a href=\"http:\/\/www.unlatched.com\/\">www.unlatched.com<\/a> or <a href=\"http:\/\/www.andrewpallant.com\/\">www.andrewpallant.com<\/a>.<\/p>\n<div class=\"blogger-post-footer\"><img width='1' height='1' src='https:\/\/blogger.googleusercontent.com\/tracker\/4951456985313329413-4142603354418898818?l=softwaredeveloperinlondon.blogspot.com' alt='' \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>When you have a class inherit another class, sometimes you want the base level class to create a collection of the top-level class. \u00a0In this blog I will demonstrate some basic inheritance and a little reflection trick. \u00a0Note the examples are in C#, but could easily be done in VB.NET Why you may want to &hellip; <a href=\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Creating a Collection of Top-Level Class From Base Level Class<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>Creating a Collection of Top-Level Class From Base Level Class - LDNDeveloper<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"Creating a Collection of Top-Level Class From Base Level Class - LDNDeveloper\" \/>\r\n<meta property=\"og:description\" content=\"When you have a class inherit another class, sometimes you want the base level class to create a collection of the top-level class. \u00a0In this blog I will demonstrate some basic inheritance and a little reflection trick. \u00a0Note the examples are in C#, but could easily be done in VB.NET Why you may want to &hellip; Continue reading Creating a Collection of Top-Level Class From Base Level Class\" \/>\r\n<meta property=\"og:url\" content=\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/\" \/>\r\n<meta property=\"og:site_name\" content=\"LDNDeveloper\" \/>\r\n<meta property=\"article:published_time\" content=\"2010-08-03T00:21:00+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/blogger.googleusercontent.com\/tracker\/4951456985313329413-4142603354418898818?l=softwaredeveloperinlondon.blogspot.com\" \/>\r\n<meta name=\"author\" content=\"andrewpallant\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:creator\" content=\"@ldnDeveloper\" \/>\r\n<meta name=\"twitter:site\" content=\"@LdnDeveloper\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"andrewpallant\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/\"},\"author\":{\"name\":\"andrewpallant\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/0e7b5e71751000e8f66b17b69ef4ab97\"},\"headline\":\"Creating a Collection of Top-Level Class From Base Level Class\",\"datePublished\":\"2010-08-03T00:21:00+00:00\",\"dateModified\":\"2010-08-03T00:21:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/\"},\"wordCount\":280,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84\"},\"image\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blogger.googleusercontent.com\/tracker\/4951456985313329413-4142603354418898818?l=softwaredeveloperinlondon.blogspot.com\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/\",\"url\":\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/\",\"name\":\"Creating a Collection of Top-Level Class From Base Level Class - LDNDeveloper\",\"isPartOf\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blogger.googleusercontent.com\/tracker\/4951456985313329413-4142603354418898818?l=softwaredeveloperinlondon.blogspot.com\",\"datePublished\":\"2010-08-03T00:21:00+00:00\",\"dateModified\":\"2010-08-03T00:21:00+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#primaryimage\",\"url\":\"https:\/\/blogger.googleusercontent.com\/tracker\/4951456985313329413-4142603354418898818?l=softwaredeveloperinlondon.blogspot.com\",\"contentUrl\":\"https:\/\/blogger.googleusercontent.com\/tracker\/4951456985313329413-4142603354418898818?l=softwaredeveloperinlondon.blogspot.com\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/andrewpallant.ca\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating a Collection of Top-Level Class From Base Level Class\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#website\",\"url\":\"http:\/\/andrewpallant.ca\/wordpress\/\",\"name\":\"LDNDeveloper\",\"description\":\"Learning, Growing and Sharing.\",\"publisher\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/andrewpallant.ca\/wordpress\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84\",\"name\":\"ldnDeveloper\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/andrewpallant.ca\/wordpress\/wp-content\/uploads\/2017\/05\/cropped-AAEAAQAAAAAAAAXQAAAAJDQxMGRlMzFjLWM4ODctNDk1NC05M2EyLWE1NDNhNTRiZjVlYw-2.jpg\",\"contentUrl\":\"https:\/\/andrewpallant.ca\/wordpress\/wp-content\/uploads\/2017\/05\/cropped-AAEAAQAAAAAAAAXQAAAAJDQxMGRlMzFjLWM4ODctNDk1NC05M2EyLWE1NDNhNTRiZjVlYw-2.jpg\",\"width\":512,\"height\":512,\"caption\":\"ldnDeveloper\"},\"logo\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/\"},\"description\":\"Andrew Pallant (@LdnDeveloper) has been a web, database and desktop developer for over 16 years. Andrew has worked on projects that ranged from factory automation to writing business applications. Most recently he has been heavily involved in various forms for ecommerce projects. Over the years Andrew has worn many hats: Project Manager, IT Manager, Lead Developer, Supervisor of Developers and many more - See more at: http:\/\/www.unlatched.com\/#sthash.8DiTkpKy.dpuf\",\"sameAs\":[\"http:\/\/www.andrewpallant.ca\",\"https:\/\/x.com\/LdnDeveloper\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/0e7b5e71751000e8f66b17b69ef4ab97\",\"name\":\"andrewpallant\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"andrewpallant\"},\"url\":\"http:\/\/andrewpallant.ca\/wordpress\/author\/andrewpallant\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating a Collection of Top-Level Class From Base Level Class - LDNDeveloper","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":"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/","og_locale":"en_US","og_type":"article","og_title":"Creating a Collection of Top-Level Class From Base Level Class - LDNDeveloper","og_description":"When you have a class inherit another class, sometimes you want the base level class to create a collection of the top-level class. \u00a0In this blog I will demonstrate some basic inheritance and a little reflection trick. \u00a0Note the examples are in C#, but could easily be done in VB.NET Why you may want to &hellip; Continue reading Creating a Collection of Top-Level Class From Base Level Class","og_url":"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/","og_site_name":"LDNDeveloper","article_published_time":"2010-08-03T00:21:00+00:00","og_image":[{"url":"https:\/\/blogger.googleusercontent.com\/tracker\/4951456985313329413-4142603354418898818?l=softwaredeveloperinlondon.blogspot.com"}],"author":"andrewpallant","twitter_card":"summary_large_image","twitter_creator":"@ldnDeveloper","twitter_site":"@LdnDeveloper","twitter_misc":{"Written by":"andrewpallant","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#article","isPartOf":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/"},"author":{"name":"andrewpallant","@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/0e7b5e71751000e8f66b17b69ef4ab97"},"headline":"Creating a Collection of Top-Level Class From Base Level Class","datePublished":"2010-08-03T00:21:00+00:00","dateModified":"2010-08-03T00:21:00+00:00","mainEntityOfPage":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/"},"wordCount":280,"commentCount":0,"publisher":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84"},"image":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#primaryimage"},"thumbnailUrl":"https:\/\/blogger.googleusercontent.com\/tracker\/4951456985313329413-4142603354418898818?l=softwaredeveloperinlondon.blogspot.com","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/","url":"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/","name":"Creating a Collection of Top-Level Class From Base Level Class - LDNDeveloper","isPartOf":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/#website"},"primaryImageOfPage":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#primaryimage"},"image":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#primaryimage"},"thumbnailUrl":"https:\/\/blogger.googleusercontent.com\/tracker\/4951456985313329413-4142603354418898818?l=softwaredeveloperinlondon.blogspot.com","datePublished":"2010-08-03T00:21:00+00:00","dateModified":"2010-08-03T00:21:00+00:00","breadcrumb":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#primaryimage","url":"https:\/\/blogger.googleusercontent.com\/tracker\/4951456985313329413-4142603354418898818?l=softwaredeveloperinlondon.blogspot.com","contentUrl":"https:\/\/blogger.googleusercontent.com\/tracker\/4951456985313329413-4142603354418898818?l=softwaredeveloperinlondon.blogspot.com"},{"@type":"BreadcrumbList","@id":"http:\/\/andrewpallant.ca\/wordpress\/creating-a-collection-of-top-level-class-from-base-level-class\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/andrewpallant.ca\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Creating a Collection of Top-Level Class From Base Level Class"}]},{"@type":"WebSite","@id":"http:\/\/andrewpallant.ca\/wordpress\/#website","url":"http:\/\/andrewpallant.ca\/wordpress\/","name":"LDNDeveloper","description":"Learning, Growing and Sharing.","publisher":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/andrewpallant.ca\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84","name":"ldnDeveloper","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/andrewpallant.ca\/wordpress\/wp-content\/uploads\/2017\/05\/cropped-AAEAAQAAAAAAAAXQAAAAJDQxMGRlMzFjLWM4ODctNDk1NC05M2EyLWE1NDNhNTRiZjVlYw-2.jpg","contentUrl":"https:\/\/andrewpallant.ca\/wordpress\/wp-content\/uploads\/2017\/05\/cropped-AAEAAQAAAAAAAAXQAAAAJDQxMGRlMzFjLWM4ODctNDk1NC05M2EyLWE1NDNhNTRiZjVlYw-2.jpg","width":512,"height":512,"caption":"ldnDeveloper"},"logo":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/"},"description":"Andrew Pallant (@LdnDeveloper) has been a web, database and desktop developer for over 16 years. Andrew has worked on projects that ranged from factory automation to writing business applications. Most recently he has been heavily involved in various forms for ecommerce projects. Over the years Andrew has worn many hats: Project Manager, IT Manager, Lead Developer, Supervisor of Developers and many more - See more at: http:\/\/www.unlatched.com\/#sthash.8DiTkpKy.dpuf","sameAs":["http:\/\/www.andrewpallant.ca","https:\/\/x.com\/LdnDeveloper"]},{"@type":"Person","@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/0e7b5e71751000e8f66b17b69ef4ab97","name":"andrewpallant","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/","url":"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"andrewpallant"},"url":"http:\/\/andrewpallant.ca\/wordpress\/author\/andrewpallant\/"}]}},"_links":{"self":[{"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/posts\/136"}],"collection":[{"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/comments?post=136"}],"version-history":[{"count":0,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/posts\/136\/revisions"}],"wp:attachment":[{"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/media?parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/categories?post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/tags?post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}