{"id":3999,"date":"2020-04-21T12:57:37","date_gmt":"2020-04-21T19:57:37","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/odata\/?p=3999"},"modified":"2020-04-21T12:57:37","modified_gmt":"2020-04-21T19:57:37","slug":"odata-connected-service-0-9-0-release","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/odata\/odata-connected-service-0-9-0-release\/","title":{"rendered":"OData Connected Service 0.9.0 Release"},"content":{"rendered":"<p><span class=\"TextRun SCXW80734668 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW80734668 BCX0\">OData Connected Service 0.9.0 has been released and is now available on Visual Studio Marketplace<\/span><\/span><span class=\"TextRun SCXW80734668 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW80734668 BCX0\">. This release<\/span><\/span><span class=\"TextRun SCXW80734668 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW80734668 BCX0\">\u00a0adds the following features<\/span><\/span><span class=\"TextRun SCXW80734668 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW80734668 BCX0\"> and bug fixes:<\/span><\/span><\/p>\n<ol>\n<li><span class=\"TextRun SCXW39260833 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW39260833 BCX0\">E<\/span><\/span><span class=\"TextRun SCXW39260833 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW39260833 BCX0\">mitting service metadata to an XML file<\/span><\/span><\/li>\n<li><span class=\"TextRun SCXW197474067 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW197474067 BCX0\">E<\/span><\/span><span class=\"TextRun SCXW197474067 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW197474067 BCX0\">xcluding<\/span><\/span><span class=\"TextRun SCXW197474067 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW197474067 BCX0\">\u00a0some<\/span><\/span><span class=\"TextRun SCXW197474067 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW197474067 BCX0\"> schema types from being emitted onto the Connected Service proxy class<\/span><\/span><\/li>\n<li><span class=\"TextRun SCXW232671936 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW232671936 BCX0\">Refinements and\u00a0<\/span><\/span><span class=\"TextRun SCXW232671936 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW232671936 BCX0\">minor\u00a0<\/span><\/span><span class=\"TextRun SCXW232671936 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW232671936 BCX0\">bug fixes<\/span><\/span><\/li>\n<\/ol>\n<p><span class=\"TextRun SCXW91973194 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW91973194 BCX0\">\u00a0<\/span><\/span><span class=\"TextRun SCXW91973194 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW91973194 BCX0\">You can get the extension from\u00a0<\/span><\/span><a class=\"Hyperlink SCXW91973194 BCX0\" href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=laylaliu.ODataConnectedService\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun Underlined SCXW91973194 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW91973194 BCX0\" data-ccp-charstyle=\"Hyperlink\">Visual Studio Marketplace<\/span><\/span><\/a><\/p>\n<ol>\n<li>\n<h2><span style=\"font-size: 14pt;\"><strong><span class=\"TextRun SCXW128548134 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW128548134 BCX0\" data-ccp-parastyle=\"heading 2\">E<\/span><\/span><span class=\"TextRun SCXW128548134 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW128548134 BCX0\" data-ccp-parastyle=\"heading 2\">mitting service metadata to an XML file\n<\/span><\/span><\/strong><\/span><\/h2>\n<p><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW4998025 BCX0\">Prior to this release, the service metadata would be emitted as a long unwieldy string in the C# or VB proxy class generated on the client.\u00a0<\/span><\/span><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW4998025 BCX0\">T<\/span><\/span><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW4998025 BCX0\">he service metadata will<\/span><\/span><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW4998025 BCX0\">\u00a0now<\/span><\/span><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW4998025 BCX0\">\u00a0be emitted to an XML file named\u00a0<\/span><\/span><em><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW4998025 BCX0\">Csdl.xml<\/span><\/span><\/em><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW4998025 BCX0\">\u00a0located under\u00a0<\/span><\/span><em><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"SpellingError SCXW4998025 BCX0\">ConnectedService<\/span><span class=\"NormalTextRun SCXW4998025 BCX0\">\\&lt;Service Name&gt;<\/span><\/span><\/em><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW4998025 BCX0\">\u00a0directory<\/span><\/span><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW4998025 BCX0\">. Since the service metadata is required when initializing a\u00a0<\/span><\/span><code><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"SpellingError SCXW4998025 BCX0\">DataServiceContext<\/span><\/span><\/code><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW4998025 BCX0\">, the file is embedded in the assembly during the build process. This ensures that<\/span><\/span><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW4998025 BCX0\">\u00a0if the<\/span><\/span><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW4998025 BCX0\">\u00a0executable is moved around or packaged for distribution the file<\/span><\/span><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW4998025 BCX0\">\u00a0will be loaded<\/span><\/span><span class=\"TextRun SCXW4998025 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW4998025 BCX0\">\u00a0as a manifest resource.\n<\/span><\/span>\n<img decoding=\"async\" class=\"alignnone wp-image-4012 size-full\" src=\"https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/04\/MetadataFileImg01.png\" alt=\"Image OData Connected Service Metadata XML File\" width=\"797\" height=\"491\" srcset=\"https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/04\/MetadataFileImg01.png 797w, https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/04\/MetadataFileImg01-300x185.png 300w, https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/04\/MetadataFileImg01-768x473.png 768w\" sizes=\"(max-width: 797px) 100vw, 797px\" \/><\/li>\n<li>\n<h2><strong><strong><span style=\"font-size: 14pt;\"><span class=\"TextRun SCXW34945507 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun CommentStart SCXW34945507 BCX0\" data-ccp-parastyle=\"heading 2\">E<\/span><\/span><span class=\"TextRun SCXW34945507 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW34945507 BCX0\" data-ccp-parastyle=\"heading 2\">xcluding\u00a0<\/span><\/span><span class=\"TextRun SCXW34945507 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW34945507 BCX0\" data-ccp-parastyle=\"heading 2\">some\u00a0<\/span><\/span><span class=\"TextRun SCXW34945507 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW34945507 BCX0\" data-ccp-parastyle=\"heading 2\">schema types from being emitted onto the Connected\u00a0<\/span><\/span><span class=\"TextRun SCXW34945507 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun CommentStart SCXW34945507 BCX0\" data-ccp-parastyle=\"heading 2\">Service<\/span><\/span><\/span><span class=\"TextRun SCXW34945507 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW34945507 BCX0\" data-ccp-parastyle=\"heading 2\"><span style=\"font-size: 14pt;\">\u00a0proxy class<\/span>\n<\/span><\/span><\/strong><\/strong><\/h2>\n<p>Support for excluding operation imports was introduced in <a href=\"https:\/\/devblogs.microsoft.com\/odata\/odata-connected-service-0-7-1-release\/\">0.7.0<\/a> release. The idea behind that feature was to help you control the size of the generated proxy. In this release, we have enhanced that to support exclusion of schema types &#8211; enum, complex and entity types. The user is able to deselect schema types that they do not wish to have emitted on the Connected Service proxy. However, to guarantee that the auto-generated code always builds, if a user deselects a schema type that another selected schema type depends on, the user will be alerted about it and the dependency included automatically. For the same reason, when a user selects a structured type, all its dependencies also get selected automatically.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-4005 size-full\" src=\"https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/04\/SchemaSelectionImg.png\" alt=\"Image OData Connected Service Schema Types Selection\" width=\"804\" height=\"552\" srcset=\"https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/04\/SchemaSelectionImg.png 804w, https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/04\/SchemaSelectionImg-300x206.png 300w, https:\/\/devblogs.microsoft.com\/odata\/wp-content\/uploads\/sites\/23\/2020\/04\/SchemaSelectionImg-768x527.png 768w\" sizes=\"(max-width: 804px) 100vw, 804px\" \/><\/li>\n<li>\n<h2><span style=\"font-size: 14pt;\"><strong><strong>Refinements and minor bug fixes<\/strong><\/strong><\/span><\/h2>\n<ul style=\"list-style-type: disc;\">\n<li>A bug was observed when updating Connected Service without visiting all wizard pages. For the wizard pages not visited, the choices and values entered when the Connected Service was initially added would be replaced with defaults.<\/li>\n<li>For users who elected to generate multiple files when adding a Connected Service, later when updating the service proxy they&#8217;d get multiple prompts confirming if they wanted to replace the existing files. In some instances, the prompts would fill the screen and cause the extension to crash.<\/li>\n<li>A few navigation and naming refinements also made it into the release<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OData Connected Service 0.9.0 has been released and is now available on Visual Studio Marketplace. This release\u00a0adds the following features and bug fixes: Emitting service metadata to an XML file Excluding\u00a0some schema types from being emitted onto the Connected Service proxy class Refinements and\u00a0minor\u00a0bug fixes \u00a0You can get the extension from\u00a0Visual Studio Marketplace Emitting service [&hellip;]<\/p>\n","protected":false},"author":25333,"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-3999","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-odata"],"acf":[],"blog_post_summary":"<p>OData Connected Service 0.9.0 has been released and is now available on Visual Studio Marketplace. This release\u00a0adds the following features and bug fixes: Emitting service metadata to an XML file Excluding\u00a0some schema types from being emitted onto the Connected Service proxy class Refinements and\u00a0minor\u00a0bug fixes \u00a0You can get the extension from\u00a0Visual Studio Marketplace Emitting service [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/posts\/3999","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\/25333"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/comments?post=3999"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/posts\/3999\/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=3999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/categories?post=3999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/tags?post=3999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}