{"id":4078,"date":"2020-04-30T16:11:03","date_gmt":"2020-04-30T23:11:03","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/odata\/?p=4078"},"modified":"2020-04-30T16:11:03","modified_gmt":"2020-04-30T23:11:03","slug":"odata-model-builder-now-available","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/odata\/odata-model-builder-now-available\/","title":{"rendered":"OData Model Builder now Available"},"content":{"rendered":"<p>How to empower developers to build OData Edm model easily from their data model (C# classes) is one of the most important task in OData team. Today, we are pleased to announce the first beta version of OData model builder available at <a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.OData.ModelBuilder\">https:\/\/www.nuget.org\/packages\/Microsoft.OData.ModelBuilder<\/a><a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=laylaliu.ODataConnectedService\" target=\"_blank\" rel=\"noopener noreferrer\">.<\/a><\/p>\n<p>Please try this package by installing as:<\/p>\n<pre class=\"prettyprint\">Install-Package Microsoft.OData.ModelBuilder<\/pre>\n<p>The basic usage of the Edm model is to use the conventional model builder, here&#8217;s sample codes<\/p>\n<pre class=\"prettyprint\"><code>ODataConventionModelBuilder modelBuilder = new ODataConventionModelBuilder();\r\nmodelBuilder.EntitySet&lt;Customer&gt;(\"Customers\");\r\nmodelBuilder.EntitySet&lt;Order&gt;(\"Orders\");\r\nIEdmModel model = modelBuilder.GetEdmModel();\r\n\r\n\/\/ Your date model (C# class)\r\npublic class Customer\r\n{\r\n  \/\/\r\n}\r\npublic class Order\r\n{\r\n  \/\/\r\n}\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>For all other detail usage of the model builder, please refer to: <a href=\"https:\/\/docs.microsoft.com\/en-us\/odata\/webapi\/model-builder-abstract\">https:\/\/docs.microsoft.com\/en-us\/odata\/webapi\/model-builder-abstract<\/a><\/p>\n<p class=\"prettyprint\">To release model builder as a simple package can also help developers to build their OData tooling ecosystem easily. Meanwhile, for OData team, it can fasten the model builder release cycle.\u00a0 So, we are planning to introduce more features (for example, term configuration, vocabulary annotation, etc) in the next release.\u00a0Please feel free to share your feature requirements, report issues at <a href=\"https:\/\/github.com\/OData\/modelbuilder\">https:\/\/github.com\/OData\/modelbuilder<\/a>.<\/p>\n<p class=\"prettyprint\">Thanks!<\/p>\n<pre id=\"package-manager-text\" class=\"install-script\"><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to empower developers to build OData Edm model easily from their data model (C# classes) is one of the most important task in OData team. Today, we are pleased to announce the first beta version of OData model builder available at https:\/\/www.nuget.org\/packages\/Microsoft.OData.ModelBuilder. Please try this package by installing as: Install-Package Microsoft.OData.ModelBuilder The basic usage [&hellip;]<\/p>\n","protected":false},"author":514,"featured_media":3253,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,116],"tags":[1320,1321],"class_list":["post-4078","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-odata","category-odl","tag-edm","tag-modelbuilder"],"acf":[],"blog_post_summary":"<p>How to empower developers to build OData Edm model easily from their data model (C# classes) is one of the most important task in OData team. Today, we are pleased to announce the first beta version of OData model builder available at https:\/\/www.nuget.org\/packages\/Microsoft.OData.ModelBuilder. Please try this package by installing as: Install-Package Microsoft.OData.ModelBuilder The basic usage [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/posts\/4078","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\/514"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/comments?post=4078"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/posts\/4078\/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=4078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/categories?post=4078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/odata\/wp-json\/wp\/v2\/tags?post=4078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}