{"id":1021,"date":"2011-12-09T12:18:33","date_gmt":"2011-12-09T16:18:33","guid":{"rendered":"https:\/\/clarionsharp.com\/blog\/?p=1021"},"modified":"2011-12-09T12:18:33","modified_gmt":"2011-12-09T16:18:33","slug":"net-appgen-release","status":"publish","type":"post","link":"https:\/\/clarionsharp.com\/blog\/net-appgen-release\/","title":{"rendered":".Net AppGen release"},"content":{"rendered":"<p>Download instructions are going out today for the initial release of the .Net AppGen.\u00a0 We have two new newsgroups setup;<\/p>\n<p>For questions on writing T4 templates<br \/>\nsv.clarion.T4.WritingTemplates<\/p>\n<p>For questions on using the T4 templates<br \/>\nsv.clarion.T4.TemplateHelp<\/p>\n<p>We&#8217;ll make a decision on whether to host the T4 template project on our Subversion server or on Codeplex next week.<\/p>\n<p>Here is an excerpt from the &#8220;getting started&#8221; document that&#8217;s included in the download:<\/p>\n<p>.NET offers many choices for application architecture; from placing the data access code directly in the<br \/>\nUI through datasets and data source controls, to creating a data access layer that talks to the database,<br \/>\nand using an n-tier architecture approach that consists of multiple layers and objects to pass data back<br \/>\nand forth.<\/p>\n<p>While embedding data access and business rule code directly into the UI is generally easier, in some<br \/>\ncases it\u2019s not the best approach for a given project.<\/p>\n<p>.NET supplies a data control structure called the ObjectDataSource which gives us the possibility to use a<br \/>\n3 tier design model. It supports an architecture whereby all Sql commands are embedded into a middle<br \/>\ntier. You only have to supply the underlying object and map the methods from the Business Layer to the<br \/>\ndifferent Sql commands.\u00a0 And while I am talking about Sql and ADO.Net right now, take a look at the<br \/>\nimage below.\u00a0 The data access layer can (and soon will) support using the Clarion Driver technology;<br \/>\nboth direct drivers and thru the IP driver, as well as other access approaches like using a webservice.<\/p>\n<p style=\"text-align: left;\"><a href=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2011\/12\/ObjectDataSource.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1023 aligncenter\" title=\"ObjectDataSource\" src=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2011\/12\/ObjectDataSource.png\" alt=\"n-tier with ObjectDataSource\" width=\"582\" height=\"602\" \/><\/a><\/p>\n<p style=\"text-align: left;\">In this initial release of the .Net AppGen the templates for both Web and WinForm make use of the<br \/>\nsame 3 tier architecture using the ObjectDataSource. This first release supports ADO.Net for the data<br \/>\naccess, and our next update will utilize the same 3-tier architecture; but the data access layer uses<br \/>\nClarion drivers and our LinqToFile provider.<\/p>\n<p>We realize that this release can be a bit of a leap \u2013 moving from the ABC data access layer or direct<br \/>\ndriver use in the Clarion chain to a 3-tier architecture model means there is a bit to learn.\u00a0 But it\u2019s well<br \/>\nworth exploring it, even if after the fact you choose to keep your development closer to our Win32<br \/>\nmodel (we intend to support that as well). The same n-tier architecture model will be implemented in<br \/>\nfuture templates to support using other object-relational mapping frameworks; like Microsoft\u2019s Entity<br \/>\nFramework and nHibernate.<\/p>\n<p>If you follow along with the steps below (for either Web app or WinForm) you\u2019ll end up with a<br \/>\n\u201cEnterprise architecture\u201d style 3-tier app, and possibly find that you like it. Most of the problems that<br \/>\nyou will run into come in 2 flavors; ADO.Net connection strings that refuse to connect but return no<br \/>\nerrors (usually a backend config issue), and for web apps; IIS configuration issues. Hopefully your trip will<br \/>\navoid them but don\u2019t be surprised if you have to battle configuration issues.<br \/>\n3 tier Application<\/p>\n<p>We\u2019ll create two projects for our web application.\u00a0 We\u2019ll first create the Model application; this will<br \/>\ncreate a reusable assembly (DLL) that defines and contains all of our data access objects to be used in<br \/>\nour Web Application.<\/p>\n<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<\/p>\n<p>For the rest of the story refer to the GettingStartedWithT4templates.pdf in the download!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download instructions are going out today for the initial release of the .Net AppGen.\u00a0 We have two new newsgroups setup; For questions on writing T4 templates sv.clarion.T4.WritingTemplates For questions on using the T4 templates sv.clarion.T4.TemplateHelp We&#8217;ll make a decision on whether to host the T4 template project on our Subversion server or on Codeplex next &hellip; <a href=\"https:\/\/clarionsharp.com\/blog\/net-appgen-release\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">.Net AppGen release<\/span> <span class=\"meta-nav\">&rarr;<\/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":[5],"tags":[],"class_list":["post-1021","post","type-post","status-publish","format-standard","hentry","category-clarionnews"],"_links":{"self":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts\/1021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/comments?post=1021"}],"version-history":[{"count":0,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts\/1021\/revisions"}],"wp:attachment":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/media?parent=1021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/categories?post=1021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/tags?post=1021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}