{"id":4037,"date":"2020-04-30T10:00:47","date_gmt":"2020-04-30T17:00:47","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/odata\/?p=4037"},"modified":"2020-04-30T10:00:47","modified_gmt":"2020-04-30T17:00:47","slug":"odata-connected-service-0-9-1-release","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/odata\/odata-connected-service-0-9-1-release\/","title":{"rendered":"OData Connected Service 0.9.1 Release"},"content":{"rendered":"<p>Good News! A new version of OData Connected Service is now available in the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=laylaliu.ODataConnectedService\" target=\"_blank\" rel=\"noopener noreferrer\">Visual Studio Marketplace.<\/a><\/p>\n<p>The new version adds the following new features and bug fixes\/enhancements:<\/p>\n<p>Features<\/p>\n<ol>\n<li>Auto-selects the last metadata endpoint used in generating proxy classes<\/li>\n<\/ol>\n<p>Bug Fixes\/Enhancements<\/p>\n<ol>\n<li>Enables multiple files generation using design-time T4 templates<\/li>\n<li>Wizard state persistence when updating an OData Connected Service project.<\/li>\n<\/ol>\n<p><span style=\"font-size: 18pt;\">Auto-selects the last metadata endpoint used in generating proxy classes<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-4051\" src=\"https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/04\/configendpoint-300x194.png\" alt=\"Image configendpoint\" width=\"654\" height=\"423\" srcset=\"https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/04\/configendpoint-300x194.png 300w, https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/04\/configendpoint-768x497.png 768w, https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/04\/configendpoint.png 823w\" sizes=\"(max-width: 654px) 100vw, 654px\" \/><\/p>\n<p>The endpoint dropdown contains a list of all the recent endpoints used in generating proxy classes as shown above. This feature auto selects the most recent endpoint used in generating proxy classes. This is important when you are working with an endpoint undergoing frequent changes and that requires recurrent regeneration of the proxy classes.<\/p>\n<p><span style=\"font-size: 18pt;\">Enables multiple files generation using design-time T4 templates<\/span><\/p>\n<p>The support for multiple files generation in OData Connected Service was introduced in v0.6.0 as a setting on the OData Connected Service wizard window. That means that for you to be able to use this feature you have to browse to the advanced settings page on the wizard and check the &#8220;Generate multiple files&#8221; checkbox as shown below.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-3912\" src=\"https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/03\/advancedsettings-1-300x147.png\" alt=\"Image advancedsettings\" width=\"669\" height=\"328\" srcset=\"https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/03\/advancedsettings-1-300x147.png 300w, https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/03\/advancedsettings-1-1024x501.png 1024w, https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/03\/advancedsettings-1-768x376.png 768w, https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/03\/advancedsettings-1.png 1193w\" sizes=\"(max-width: 669px) 100vw, 669px\" \/><\/p>\n<p>This release allows you to generate multiple files using design-time T4 templates. To use this feature, browse to the advanced settings page on the OData Connected Service wizard. A window like the one shown above will open. Check the &#8220;Add code templates(Whether to include the T4 files in this project)&#8221; checkbox.\u00a0 A file with a .tt extension will be generated as shown below.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-4065\" src=\"https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/04\/reftt-300x167.png\" alt=\"Image reftt\" width=\"557\" height=\"310\" srcset=\"https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/04\/reftt-300x167.png 300w, https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/04\/reftt.png 413w\" sizes=\"(max-width: 557px) 100vw, 557px\" \/><\/p>\n<p>Open the file and change the &#8220;GenerateMultipleFiles&#8221; configuration from false to true and save the file. Voil\u00e0! Multiple files are generated.<\/p>\n<p><span style=\"font-size: 18pt;\">Wizard state persistence when updating an OData Connected Service Project<\/span><\/p>\n<p>There was an issue with wizard state persistence when updating an OData Connected Service Project&#8217;s function\/action imports and schema types. If you selected or unselected an action\/function import or a schema type when updating your project and navigated away from the specific pages and came back to them later, the values that you selected or unselected will be lost. This fix ensures that the values do not get lost.<\/p>\n<p>Stay tuned for upcoming releases<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Good News! A new version of OData Connected Service is now available in the Visual Studio Marketplace. The new version adds the following new features and bug fixes\/enhancements: Features Auto-selects the last metadata endpoint used in generating proxy classes Bug Fixes\/Enhancements Enables multiple files generation using design-time T4 templates Wizard state persistence when updating an [&hellip;]<\/p>\n","protected":false},"author":12390,"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-4037","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-odata"],"acf":[],"blog_post_summary":"<p>Good News! A new version of OData Connected Service is now available in the Visual Studio Marketplace. The new version adds the following new features and bug fixes\/enhancements: Features Auto-selects the last metadata endpoint used in generating proxy classes Bug Fixes\/Enhancements Enables multiple files generation using design-time T4 templates Wizard state persistence when updating an [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/posts\/4037","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\/12390"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/comments?post=4037"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/posts\/4037\/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=4037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/categories?post=4037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/tags?post=4037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}