{"id":1484,"date":"2007-04-23T22:14:35","date_gmt":"2007-04-24T01:14:35","guid":{"rendered":"http:\/\/www.hoogervorst.ca\/arthur\/?page_id=1484"},"modified":"2009-03-28T08:47:37","modified_gmt":"2009-03-28T12:47:37","slug":"dbclasswrapper","status":"publish","type":"page","link":"http:\/\/www.hoogervorst.ca\/arthur\/?page_id=1484","title":{"rendered":"DBClassWrapper"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>This is a quick &#038; dirty class wrapper for C# projects (most likely only .Net framework 2.0) which should compile perfectly in both SharpDevelop and the Visual Studio Express, C# edition. It basically will read field information from a table and converts that to a class. The rest is up to you of course, but, heck, it saves you typing all those fricking fields. Note that I come from the Pascal generation so I use those devillish &#8216;f&#8217;s for private members.\n<\/p>\n<p>Notice that it DOES NOT COME WITH AN EXECUTABLE. If you need an executable, you can mail me personally and I&#8217;ll consider adding it to the zip-file: however, if you ended up on this page, most likely you were looking for something like this and I took the freedom to assume that you already know how to compile this stuff.\n<\/p>\n<p>Additionally, while released under the GPL (what, you mean?), the license does not apply to the generated code.\n<\/p>\n<h2>Compile<\/h2>\n<p>1. Download the zip-file.<br \/>\n2. Extract it to a folder.<br \/>\n3. Compile and build it.<br \/>\n4. Run with parameters like for example &#8216;DbClassWrapper -o=&#8221;TestDB&#8221; -u=&#8221;Huh&#8221; -p=&#8221;admin&#8221; -t=this_table > output.txt&#8217;\n<\/p>\n<h2>Where?<\/h2>\n<p>Right here: <a href='http:\/\/www.hoogervorst.ca\/arthur\/?attachment_id=1485' rel='attachment wp-att-1485' title='DBClassWrapper'>DBClassWrapper<\/a> (zip file ~20KB).\n<\/p>\n<h2>Future Enhancements<\/h2>\n<p>Generate insert \/ update code\/methods based on primary key\/unique constraints information.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: This is a quick &#038; dirty class wrapper for C# projects (most likely only .Net framework 2.0) which should compile perfectly in both SharpDevelop and the Visual Studio Express, C# edition. It basically will read field information from a &hellip; <a href=\"http:\/\/www.hoogervorst.ca\/arthur\/?page_id=1484\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":941,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/pages\/1484"}],"collection":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1484"}],"version-history":[{"count":0,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/pages\/1484\/revisions"}],"up":[{"embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/pages\/941"}],"wp:attachment":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}