<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://community.codesmithtools.com/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>Templates</title><link>http://community.codesmithtools.com/gallery/g/templates/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>Template to generate NUnit test for an assembly</title><link>http://community.codesmithtools.com/gallery/p/30201.aspx</link><pubDate>Sun, 09 Mar 2008 01:25:54 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:30201</guid><dc:creator>joseph_guadagno</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;&amp;nbsp;This template will allow you to generate NUnit test classes for existing .NET assemblies. &lt;/p&gt;</description><enclosure url="http://community.codesmithtools.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.03.02.01/NUnit_5F00_Reflection_5F00_Templates.zip" length="8403" type="application/zip" /></item><item><title>Dynamic Search Stored Procedure Creation</title><link>http://community.codesmithtools.com/gallery/p/30082.aspx</link><pubDate>Tue, 26 Feb 2008 10:25:58 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:30082</guid><dc:creator>kumar106</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;It creates a most efficient dynamic stored procedure&lt;/p&gt;
&lt;p&gt;Create Procedure dbo.SearchRP_Demand&lt;br /&gt;&amp;nbsp;@HCID int = 0,&lt;br /&gt;&amp;nbsp;@OPPID varchar(20) = &amp;#39;&amp;#39;,&lt;br /&gt;&amp;nbsp;@StartDate datetime = &amp;#39;&amp;#39;,&lt;br /&gt;&amp;nbsp;@EndDate datetime = &amp;#39;&amp;#39;,&lt;br /&gt;&amp;nbsp;@HeadCount int = 0,&lt;br /&gt;&amp;nbsp;@JobID int = 0,&lt;br /&gt;&amp;nbsp;@DomainId int = 0,&lt;br /&gt;&amp;nbsp;@DomainName varchar(100) = &amp;#39;&amp;#39;,&lt;br /&gt;&amp;nbsp;@EmpJAILevel varchar(50) = &amp;#39;&amp;#39;,&lt;br /&gt;&amp;nbsp;@EmpJAILevelId int = 0,&lt;br /&gt;&amp;nbsp;@Location varchar(50) = &amp;#39;&amp;#39;,&lt;br /&gt;&amp;nbsp;@LocationID int = 0,&lt;br /&gt;&amp;nbsp;@EmployeeType varchar(100) = &amp;#39;&amp;#39;,&lt;br /&gt;&amp;nbsp;@EmployeeTypeId int = 0,&lt;br /&gt;&amp;nbsp;@SGName nvarchar(50) = &amp;#39;&amp;#39;,&lt;br /&gt;&amp;nbsp;@SGID varchar(50) = &amp;#39;&amp;#39;&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;Select&lt;br /&gt;&amp;nbsp;[HCID],&lt;br /&gt;&amp;nbsp;[OPPID],&lt;br /&gt;&amp;nbsp;[StartDate],&lt;br /&gt;&amp;nbsp;[EndDate],&lt;br /&gt;&amp;nbsp;[HeadCount],&lt;br /&gt;&amp;nbsp;[JobID],&lt;br /&gt;&amp;nbsp;[DomainId],&lt;br /&gt;&amp;nbsp;[DomainName],&lt;br /&gt;&amp;nbsp;[EmpJAILevel],&lt;br /&gt;&amp;nbsp;[EmpJAILevelId],&lt;br /&gt;&amp;nbsp;[Location],&lt;br /&gt;&amp;nbsp;[LocationID],&lt;br /&gt;&amp;nbsp;[EmployeeType],&lt;br /&gt;&amp;nbsp;[EmployeeTypeId],&lt;br /&gt;&amp;nbsp;[SGName],&lt;br /&gt;&amp;nbsp;[SGID]&lt;br /&gt;&amp;nbsp; FROM dbo.RP_Demand&lt;br /&gt;WHERE&lt;br /&gt;&amp;nbsp;1 = Case When @HCID = 0 Then 1&amp;nbsp; When @HCID = HCID Then 1&amp;nbsp; END AND &lt;br /&gt;&amp;nbsp;1 = Case When @OPPID = &amp;#39;&amp;#39; Then 1&amp;nbsp; When OPPID like &amp;#39;%&amp;#39; + @OPPID + &amp;#39;%&amp;#39; Then 1 END&amp;nbsp;&amp;nbsp;&amp;nbsp; AND &lt;br /&gt;&amp;nbsp;1 = Case When @StartDate = &amp;#39;&amp;#39; Then 1&amp;nbsp; When @StartDate = StartDate&amp;nbsp; Then 1 END&amp;nbsp;&amp;nbsp;&amp;nbsp; AND &lt;br /&gt;&amp;nbsp;1 = Case When @EndDate = &amp;#39;&amp;#39; Then 1&amp;nbsp; When @EndDate = EndDate&amp;nbsp; Then 1 END&amp;nbsp;&amp;nbsp;&amp;nbsp; AND &lt;br /&gt;&amp;nbsp;1 = Case When @HeadCount = 0 Then 1&amp;nbsp; When @HeadCount = HeadCount Then 1&amp;nbsp; END AND &lt;br /&gt;&amp;nbsp;1 = Case When @JobID = 0 Then 1&amp;nbsp; When @JobID = JobID Then 1&amp;nbsp; END AND &lt;br /&gt;&amp;nbsp;1 = Case When @DomainId = 0 Then 1&amp;nbsp; When @DomainId = DomainId Then 1&amp;nbsp; END AND &lt;br /&gt;&amp;nbsp;1 = Case When @DomainName = &amp;#39;&amp;#39; Then 1&amp;nbsp; When DomainName like &amp;#39;%&amp;#39; + @DomainName + &amp;#39;%&amp;#39; Then 1 END&amp;nbsp;&amp;nbsp;&amp;nbsp; AND &lt;br /&gt;&amp;nbsp;1 = Case When @EmpJAILevel = &amp;#39;&amp;#39; Then 1&amp;nbsp; When EmpJAILevel like &amp;#39;%&amp;#39; + @EmpJAILevel + &amp;#39;%&amp;#39; Then 1 END&amp;nbsp;&amp;nbsp;&amp;nbsp; AND &lt;br /&gt;&amp;nbsp;1 = Case When @EmpJAILevelId = 0 Then 1&amp;nbsp; When @EmpJAILevelId = EmpJAILevelId Then 1&amp;nbsp; END AND &lt;br /&gt;&amp;nbsp;1 = Case When @Location = &amp;#39;&amp;#39; Then 1&amp;nbsp; When Location like &amp;#39;%&amp;#39; + @Location + &amp;#39;%&amp;#39; Then 1 END&amp;nbsp;&amp;nbsp;&amp;nbsp; AND &lt;br /&gt;&amp;nbsp;1 = Case When @LocationID = 0 Then 1&amp;nbsp; When @LocationID = LocationID Then 1&amp;nbsp; END AND &lt;br /&gt;&amp;nbsp;1 = Case When @EmployeeType = &amp;#39;&amp;#39; Then 1&amp;nbsp; When EmployeeType like &amp;#39;%&amp;#39; + @EmployeeType + &amp;#39;%&amp;#39; Then 1 END&amp;nbsp;&amp;nbsp;&amp;nbsp; AND &lt;br /&gt;&amp;nbsp;1 = Case When @EmployeeTypeId = 0 Then 1&amp;nbsp; When @EmployeeTypeId = EmployeeTypeId Then 1&amp;nbsp; END AND &lt;br /&gt;&amp;nbsp;1 = Case When @SGName = &amp;#39;&amp;#39; Then 1&amp;nbsp; When SGName like &amp;#39;%&amp;#39; + @SGName + &amp;#39;%&amp;#39; Then 1 END&amp;nbsp;&amp;nbsp;&amp;nbsp; AND &lt;br /&gt;&amp;nbsp;1 = Case When @SGID = &amp;#39;&amp;#39; Then 1&amp;nbsp; When SGID like &amp;#39;%&amp;#39; + @SGID + &amp;#39;%&amp;#39; Then 1 END&amp;nbsp;&amp;nbsp; &lt;br /&gt;END&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description><enclosure url="http://community.codesmithtools.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.03.00.82/DynamicSearchStoredProcedure.cst" length="8774" type="application/codesmith" /></item><item><title>NHibernate VB.Net templates</title><link>http://community.codesmithtools.com/gallery/p/29583.aspx</link><pubDate>Thu, 24 Jan 2008 12:59:31 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:29583</guid><dc:creator>Kev160967</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;I&amp;#39;ve adapted Scott Beeler&amp;#39;s C# templates to generate VB.Net code instead. I&amp;#39;ve also added a few extensions (documented in the notes for each template) and tidied the code up a wee bit. The templates currently generate against our entity framework, but there are minimal (documented) changes required to remove or change this. I&amp;#39;ve left it in, as I assume most people would have similar entity base classes they&amp;#39;d be generating against. &lt;/p&gt;
&lt;p&gt;One of the changes I&amp;#39;ve made is to extract some of the property generated code into subtemplates. This was because the code was duplicated for joined sub classes, and I also think it makes the main template clear and easier to follow. There are three top level templates:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;NHibernate.VB.cst - this generates your basic NHibernate mapped class in VB for a specified table&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;NHibernate.hbm.cst - this generates the NHibernate map file for a specified table&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;NHibernate.VBEnum.cst - this generates a non-mapped Enum &amp;amp; class for a specified table&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;I&amp;#39;ve not yet written a wrapper to control generation for an entire database, as I plan to do this via an XML configuration file, coupled with a tool to generate the file from a database. I&amp;#39;ve uploaded it now, as I&amp;#39;m likely to have to get more specific to our framework before I get a chance to do this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Hope someone finds it useful!&lt;/p&gt;
&lt;p&gt;Kev&lt;/p&gt;</description><enclosure url="http://community.codesmithtools.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.02.95.83/NHibernate.VB.Net.zip" length="18002" type="application/x-zip-compressed" /></item><item><title>"Instead Of" Triggers for Sql Server</title><link>http://community.codesmithtools.com/gallery/p/29232.aspx</link><pubDate>Thu, 20 Dec 2007 21:59:08 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:29232</guid><dc:creator>groker</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Thank you to &lt;a class="" href="http://community.codesmithtools.com/members/Jamison.aspx" target="_blank"&gt;Jamison&lt;/a&gt; for&amp;nbsp;the &lt;a class="" href="http://community.codesmithtools.com/files/folders/templates/entry27298.aspx"&gt;script&lt;/a&gt; I based this on.&amp;nbsp; This template creates &amp;quot;Instead of&amp;quot; insert and update triggers for database tables.&amp;nbsp; It uses a strait up column to column mapping, useful to run business rules involving before and after values.&amp;nbsp; &lt;/p&gt;</description><enclosure url="http://community.codesmithtools.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.02.92.32/InsteadOfTriggers.cst" length="3263" type="application/codesmith" /></item><item><title>ScriptTableDataFor2005.zip</title><link>http://community.codesmithtools.com/gallery/p/28798.aspx</link><pubDate>Mon, 26 Nov 2007 17:21:19 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:28798</guid><dc:creator>Khaos</dc:creator><slash:comments>1</slash:comments><description /><enclosure url="http://community.codesmithtools.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.02.87.98/ScriptTableDataFor2005.zip" length="1354" type="application/x-zip-compressed" /></item><item><title>Microsoft AJAX Library templates</title><link>http://community.codesmithtools.com/gallery/p/28792.aspx</link><pubDate>Mon, 26 Nov 2007 15:52:46 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:28792</guid><dc:creator>Milan Negovan</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;This collection of templates for the Microsoft AJAX Library allows you to code-gen interfaces, enumerations, classes, non-visual components, client controls, and behavior controls. Refer to readme.txt for installation instructions. I also have an overview video &lt;a href="http://www.aspnetresources.com/downloads/Microsoft_AJAX_templates_overview/" title="here" target="_blank"&gt;here&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description><enclosure url="http://aspnetresources.com/downloads/codesmith_ms_ajax_templates.zip" length="6848" type="application/x-zip-compressed" /></item><item><title>SQL Server Audit Tables and Triggers</title><link>http://community.codesmithtools.com/gallery/p/27298.aspx</link><pubDate>Fri, 24 Aug 2007 19:37:16 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:27298</guid><dc:creator>Jamison</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;CreateAuditTablesAndTriggers.cst creates audit tables and triggers for the selected tables. Uses a one audit table per source table strategy. Timestamp columns are ignored. &amp;lt;cheese&amp;gt;To get around a SQL Server issue with text and ntext columns in the &amp;quot;inserted&amp;quot; and &amp;quot;deleted&amp;quot; tables, only &amp;quot;inserted&amp;quot; data is logged.&amp;lt;/cheese&amp;gt;Tested with MS SQL Server 2000. &lt;br /&gt;&lt;/p&gt;</description><enclosure url="http://community.codesmithtools.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.02.72.98/CreateAuditTablesAndTriggers.cst" length="6926" type="application/codesmith" /></item><item><title>SQL Server to SQL Server CE </title><link>http://community.codesmithtools.com/gallery/p/26222.aspx</link><pubDate>Sun, 08 Jul 2007 03:06:47 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:26222</guid><dc:creator>Hector</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;This template creates SQL Server Compact 2005 Edition (CE) compatible DDL statements from a SQL Server 2005 database. It handles primary keys, but no foreign keys.&lt;br /&gt;&lt;/p&gt;</description><enclosure url="http://community.codesmithtools.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.02.62.22/SqlServerToSqlCE.zip" length="1235" type="application/zip" /></item><item><title>ScriptTableData2 Using Insert/Value Statements</title><link>http://community.codesmithtools.com/gallery/p/25184.aspx</link><pubDate>Tue, 12 Jun 2007 20:25:26 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:25184</guid><dc:creator>Jamison</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Script table data as a series of insert value statements. Tested with MS SQL Server 2000.&lt;/p&gt;</description><enclosure url="http://community.codesmithtools.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.02.51.84/ScriptTableData2.cst" length="3225" type="application/codesmith" /></item><item><title>Updated CommandWrapperClass.cst which handles columns with no name</title><link>http://community.codesmithtools.com/gallery/p/24617.aspx</link><pubDate>Thu, 17 May 2007 15:17:59 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:24617</guid><dc:creator>CarlosK</dc:creator><slash:comments>0</slash:comments><description>&lt;P&gt;Corrected version.&lt;/P&gt;
&lt;P&gt;Some simple modifications to &lt;SPAN id=ctl00_ctl01_bcr_entry1___FileName&gt;CommandWrapperClass.cst&lt;/SPAN&gt; which allow it to handle result set columns which have no name.&lt;/P&gt;</description><enclosure url="http://community.codesmithtools.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.02.46.17/CommandWrapperClass.cst" length="40030" type="application/codesmith" /></item><item><title>MySql Stored Procedures</title><link>http://community.codesmithtools.com/gallery/p/22289.aspx</link><pubDate>Thu, 15 Feb 2007 02:40:22 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:22289</guid><dc:creator>phosphor</dc:creator><slash:comments>0</slash:comments><description>A modified version of Eric J. Smith 's stored procedure template that generates the stored procedures in a syntax compatible with MySQL's stored procedure format.&lt;br&gt;</description><enclosure url="http://community.codesmithtools.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.02.22.89/StoredProcedureMYSQL.cst" length="29075" type="application/codesmith" /></item><item><title>CSLA 2.0 Templates (VB)</title><link>http://community.codesmithtools.com/gallery/p/18064.aspx</link><pubDate>Sun, 24 Sep 2006 17:01:09 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:18064</guid><dc:creator>ejsmith</dc:creator><slash:comments>0</slash:comments><description>&lt;SPAN class=content&gt;Collection of CodeSmith templates for VB. These templates were tested against CSLA Framework v2.0.&lt;/SPAN&gt;</description><enclosure url="http://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=CSLAcontrib" length="23152" type="text/html; charset=utf-8" /></item><item><title>CSLA 2.0 Templates (C#)</title><link>http://community.codesmithtools.com/gallery/p/18062.aspx</link><pubDate>Sun, 24 Sep 2006 16:59:45 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:18062</guid><dc:creator>ejsmith</dc:creator><slash:comments>1</slash:comments><description>&lt;SPAN class=content&gt;Collection of CodeSmith templates for C#. These templates were tested against CSLA Framework v2.0.&lt;/SPAN&gt;</description><enclosure url="http://www.codeplex.com/Wiki/View.aspx?ProjectName=CSLAcontrib" length="26641" type="text/html; charset=utf-8" /></item><item><title>Create Data Transfer Objects from your Business Objects</title><link>http://community.codesmithtools.com/gallery/p/15265.aspx</link><pubDate>Fri, 14 Jul 2006 04:10:45 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:15265</guid><dc:creator>Ripper</dc:creator><slash:comments>0</slash:comments><description>&lt;P&gt;This template creates Data Transfer Objects from your Business Objects. Updated versions are on my blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thomasjaeger.wordpress.com/"&gt;http://thomasjaeger.wordpress.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description><enclosure url="http://community.codesmithtools.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.01.52.65/dto.zip" length="2160" type="application/x-zip-compressed" /></item><item><title>Custom Event and Exception Class Templates</title><link>http://community.codesmithtools.com/gallery/p/12291.aspx</link><pubDate>Wed, 05 Apr 2006 23:15:16 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:12291</guid><dc:creator>pwelter34</dc:creator><slash:comments>0</slash:comments><description>&lt;P class=MsoNormal&gt;&lt;SPAN&gt;The following templates generate custom exception and event classes.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;The classes follow the recommended pattern for each.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;The templates support the ability to add custom arguments to the class. These templates require CodeSmith &lt;/SPAN&gt;3.2.6.x or greater. &lt;SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;</description><enclosure url="http://community.codesmithtools.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.01.22.91/CustomEventAndExceptionTemplates.zip" length="3121" type="application/x-zip-compressed" /></item></channel></rss>