<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://tod1d.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>CodeSmith</title><link>http://tod1d.net/files/folders/codesmith/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>Tod1d's CodeSmith Templates v 2.0</title><link>http://tod1d.net/files/folders/codesmith/entry523.aspx</link><pubDate>Wed, 29 Aug 2007 22:10:20 GMT</pubDate><guid isPermaLink="false">960ae9f1-ea49-471c-8adf-2f083ed56b37:523</guid><dc:creator>Tod Birdsall</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;These are the template files I use to generate the stored procedures and classes that I use as the backbone of my C# ASP.NET and console applications. The generated code will provide you with your data access layer and business layer. Simply point the templates to a table in your database and your CRUD (Create, Read, Update and Delete) code will automatically be generated, along with the associated business entity and custom collection.&lt;/p&gt;&lt;p&gt;If you have any feedback, please &lt;a href="http://tod1d.net/blogs/tech/contact.aspx"&gt;contact me&lt;/a&gt;. I hope these templates help you as much as they have helped me.&lt;br&gt;&lt;/p&gt;&lt;p&gt;Author: Tod Birdsall&lt;br&gt;Credits:&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;The templates that I use are derived from the sample templates that are included with CodeSmith 2.6.&lt;br&gt;&lt;br&gt;Requirements:&lt;br&gt;&amp;nbsp;- .NET 2.0&lt;br&gt;&amp;nbsp;- CodeSmith 2.6 (Freeware version available here: http://www.codesmithtools.com/freeware.aspx)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;- Requires .NET 1.1&lt;br&gt;&amp;nbsp;- Your database tables to use INT type as primary key.&lt;br&gt;&lt;br&gt;Instructions:&lt;br&gt;&lt;br&gt;&amp;nbsp;1. Create a project new class library project in Visual Studio 2005. I normally name mine with suffixed with "Lib" (e.g. MyAppLib).&lt;br&gt;&amp;nbsp;2. Add SQLHelper.cs, DataEntityBase.cs, DataEntityBaseList.cs, and ConfigurationUtil.cs to your project. You will find them in the \RequiredClasses\ directory included with this ZIP file.&lt;br&gt;&amp;nbsp;3. Create your stored procs using Tod1d_StoredProcedures.cst and add them to your database by copying and pasting the text into SQL Query Analyzer and running it.&lt;br&gt;&amp;nbsp;4. Create your classes using Tod1d_ClassLibrary.cst. The only required field is SourceTable.&lt;br&gt;&amp;nbsp;5. Drag the newly created classes into your class library project.&lt;br&gt;&lt;br&gt;Release notes:&lt;br&gt;&lt;br&gt;v 2.0&lt;br&gt;&lt;br&gt;&amp;nbsp;- You no longer have to manually creat class (.cs) files. Files are now generated in an output directory. You can drag them into your solution.&lt;br&gt;&amp;nbsp;- You can make changes to the classes without having them overwritten when you regenerate the code. Simply copy and paste over the files in the "Generated" folder. Thanks to &lt;a href="http://blogs.msdn.com/pmaroun/"&gt;Pete Maroun&lt;/a&gt; for this suggestion.&lt;br&gt;&amp;nbsp;- All entity classes are serializable by default. Thanks to Matthew Hinton for this suggestion and for testing this version of the template files.&lt;br&gt;&amp;nbsp;- Fixed bug where you were required to close the template before generating another set of classes or stored procedures.&lt;br&gt;&lt;br&gt;v 1.0&lt;br&gt;&lt;br&gt;&amp;nbsp;- Instructions included with code that generates the classes.&lt;br&gt;&lt;br&gt;&amp;nbsp;- Less copy and pasting.&lt;br&gt;&lt;br&gt;&amp;nbsp;- Support for 'list' tables. An example of a 'list' table would be a table used to store data that fills a dropdown. (i.e. States). Tables where you want to return all records.&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://tod1d.net/files/folders/codesmith/entry13.aspx"&gt;You can find version 1.0 of these templates here.&lt;/a&gt;&lt;/p&gt;</description><enclosure url="http://tod1d.net/files/folders/523/download.aspx" length="24554" type="application/zip" /></item><item><title>Tod1d's CodeSmith Templates v 1.0</title><link>http://tod1d.net/files/folders/codesmith/entry13.aspx</link><pubDate>Thu, 26 Oct 2006 23:45:39 GMT</pubDate><guid isPermaLink="false">960ae9f1-ea49-471c-8adf-2f083ed56b37:13</guid><dc:creator>Tod Birdsall</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;These templates have been improved. &lt;a href="http://tod1d.net/files/folders/codesmith/entry523.aspx"&gt;Checkout version 2.0 of these CodeSmith templates.&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This is a collection of CodeSmith templates that I use on a regular basis.&lt;/p&gt;&lt;p&gt;Requirements: &lt;br&gt;&amp;nbsp;- .NET 2.0&lt;br&gt;&amp;nbsp;- CodeSmith 2.6 (Freeware version available here: &lt;a href="http://www.codesmithtools.com/freeware.aspx"&gt;http://www.codesmithtools.com/freeware.aspx&lt;/a&gt;)&lt;br&gt;&amp;nbsp;- Your database tables to use INT type as primary key.&lt;/p&gt;&lt;p&gt;Instructions:&lt;/p&gt;&lt;p&gt;&amp;nbsp;1. Create a project new class library project in Visual Studio 2005. I normally name mine with suffixed with "Lib" (e.g. MyAppLib).&lt;br&gt;&amp;nbsp;2. Add SQLHelper.cs, DataEntityBase.cs, and DataEntityBaseList.cs to your project.&lt;br&gt;&amp;nbsp;3. Create your stored procs using Tod1d_StoredProcedures.cs and add them to your database.&lt;br&gt;&amp;nbsp;4. Create your classes using Tod1d_ClassLibrary.cst. The only required field is SourceTable. Follow the instructions in the generated code.&lt;/p&gt;&lt;p&gt;Recent enhancements:&lt;/p&gt;&lt;p&gt;&amp;nbsp;- Instructions included with code that generates the classes.&lt;/p&gt;&lt;p&gt;&amp;nbsp;- Less copy and pasting.&lt;/p&gt;&lt;p&gt;&amp;nbsp;- Support for 'list' tables. An example of a 'list' table would be a table used to store data that fills a dropdown. (i.e. States). Tables where you want to return all records.&lt;br&gt;&lt;/p&gt;</description><enclosure url="http://tod1d.net/files/folders/13/download.aspx" length="15036" type="application/x-zip-compressed" /></item></channel></rss>