<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>CodeTrigger - FAQ - How do I customise the code generation templates - Messages</title>
<link>https://www.codetrigger.com/forum/topic1-how-do-i-customise-the-code-generation-templates.aspx</link>
<description>CodeTrigger - FAQ - How do I customise the code generation templates - Messages</description>
<language>en-us</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>Jitbit AspNetForum</generator>
<pubDate>Sun, 19 Nov 2017 18:55:03 GMT</pubDate>
<lastBuildDate>Sun, 19 Nov 2017 18:55:03 GMT</lastBuildDate>
<item>
<link>https://www.codetrigger.com/forum/topic1-how-do-i-customise-the-code-generation-templates.aspx</link>
<title>Message from ForumAdmin</title>
<description><![CDATA[CodeTrigger does <b>not</b> use user-customizable templates. There are lots of template driven code-generators out there, so you can take your pick. Customizing the code generated by CodeTrigger is done either by selecting the various options in your CodeTrigger solution prior to code generation, or by one of the other approaches outlined below.<br/><br/><span style="color:rgb(105, 105, 105)"><span style="font-family:" helvetica="" neue",="" "lucida="" grande",="" "segoe="" ui",="" arial,="" helvetica,="" verdana,="" sans-serif">CODE GENERATION OPTIONS</span></span><br/><span style="color:rgb(105, 105, 105)"><span style="font-family:" helvetica="" neue",="" "lucida="" grande",="" "segoe="" ui",="" arial,="" helvetica,="" verdana,="" sans-serif">There are dozens of combinations of options for code generation that you can select in the CodeTrigger UI. Some of the options are</span></span><br/><span style="color:#696969"><br/></span><li>Generate Interfaces - Select this option for scenarios when you might need to swap between implementations of certain functions, CodeTrigger will then generate interface definition files for all its classes, and ensure that the classes implement those interfaces.</li><br/><br/><li>Repository Pattern - You can select this option to enable the swapping in and out of repository implementations, when using repository pattern.</li><br/><br/><li>Dependency Injection and IOC - If using this pattern you can configure CodeTrigger to generate code and attributes to enable the use of common containers such as Unity and Ninject, if required.</li><br/><br/><li>Unit of Work pattern - Selecting this option decorates your classes with the relevant attributes and interfaces to enable to construction of a transaction worker for multiple database ops that can be rolled back as a unit. There is built-in support for both the repository and non-repository-pattern use-case.</li><br/><br/><li>Database concurrency management - This option generates basic multi-user data-versioning & concurrency management code blocks assuming an 'Optimistic Concurrency' scenario.</li><br/><br/><li>Logging support - You can select this option to generate logging callbacks so you can easily add logging for all user actions and capture information all "insert", "update", and "delete" requests with a minimum of effort. This option generates a callback to allows you to provide the implementation or call the third party logger of your choice, eg log4net or Microsoft Enterprise Practices Logging Block.</li><br/><br/><li>Exception handling - This option generates exception handling callbacks so you can easily insert your preferred exception handling implementation or call/configure a third party enterprise level exception handling library.</li><span style="color:rgb(105, 105, 105)"><span style="font-family:" helvetica="" neue",="" "lucida="" grande",="" "segoe="" ui",="" arial,="" helvetica,="" verdana,="" sans-serif"><br/><span style="color:rgb(105, 105, 105)"><span style="font-family:" helvetica="" neue",="" "lucida="" grande",="" "segoe="" ui",="" arial,="" helvetica,="" verdana,="" sans-serif"><br/></span></span><br/>These are just a few of the many options available, for both simple and complex projects, from basic 1-tier database query apps, to multi-tier architectured enterprise level apps.</span></span><br/><i>edited by ForumAdmin on 11/19/2017</i>]]></description>
<pubDate>Sun, 19 Nov 2017 18:55:03 GMT</pubDate>
</item>
</channel>
</rss>
