{"id":4336,"date":"2020-11-11T08:56:41","date_gmt":"2020-11-11T15:56:41","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/odata\/?p=4336"},"modified":"2020-11-11T08:56:41","modified_gmt":"2020-11-11T15:56:41","slug":"odata-connected-service-0-11-1-release","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/odata\/odata-connected-service-0-11-1-release\/","title":{"rendered":"OData Connected Service 0.11.1 Release"},"content":{"rendered":"<p>OData Connected Service 0.11.1 has been released and is available in the Visual Studio Marketplace. This release includes the following features:<\/p>\n<ul>\n<li>Search box for filtering entity types and operation imports to include in the client code<\/li>\n<li>Add doc comments to generated code based on description annotations<\/li>\n<li>Replace &#8220;source&#8221; and &#8220;keys&#8221; parameter names in generated code to avoid conflicts<\/li>\n<li>A number of bug fixes<\/li>\n<\/ul>\n<p>The extension has also been transferred to the .Net Foundation.<\/p>\n<h2>Search box for filtering entity types<\/h2>\n<p>Search boxes have been added to the Schema Types and Function\/Action Import pages to make it easier to<\/p>\n<p>find the items you want to include in the generated code. This is useful when your model has a large number<\/p>\n<p>of schema elements.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/11\/OCS-SearchBox.gif\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4337\" src=\"https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/11\/OCS-SearchBox.gif\" alt=\"Image OCS SearchBox\" width=\"798\" height=\"537\" \/><\/a><\/p>\n<h2>Generating doc comments from description annotations<\/h2>\n<p>In previous versions, all generated code elements had doc comments with a description like &#8220;There are no comments for Person in the schema&#8221;. The new version<\/p>\n<p>extracts description annotations from the OData schema and uses them to generate corresponding doc comments. This improves Intellisense support for the client code.<\/p>\n<h2>Renaming source and key params to avoid conflicts<\/h2>\n<p>The generated code uses the parameter names <code>source<\/code>\u00a0and <code>keys<\/code>\u00a0in many places. Since these names might be common in some OData schemas, they sometime cause conflicts and compilation errors. The new version replaces these names in the generated code with <code>_source<\/code> and <code>_keys<\/code> respectively.<\/p>\n<h2>Bug fixes<\/h2>\n<ul>\n<li>Fix build errors caused by incompatible System.Text.Json version when using newer versions of OData client<\/li>\n<li>Include enum types from enum collection properties in generated code to avoid compilation errors<\/li>\n<li>Fix issue where false is generated as False (uppercase F) in C# code, causing errors<\/li>\n<li>Fix issue causing undefined Edmx reference to appear in generated code<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This post announces release of OData Connected Service v0.11.1 and its new features and bug fixes.<\/p>\n","protected":false},"author":20326,"featured_media":3253,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4336","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-odata"],"acf":[],"blog_post_summary":"<p>This post announces release of OData Connected Service v0.11.1 and its new features and bug fixes.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/posts\/4336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/users\/20326"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/comments?post=4336"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/posts\/4336\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/media\/3253"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/media?parent=4336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/categories?post=4336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/tags?post=4336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}