.netTiers templates for CodeSmith...
crosspost from http://rex.la/blogs/work/
[via Rob Howard]
Nice post from Rob Howard on introduction of .netTiers templates for CodeSmith.
.netTiers templates are the templates for generation of Data Access Layer (DAL) that follows recommandations of Microsoft Patterns & Practices data access techniques, including the using of its Enterprise Libraries.
There are majorly 2 approaches of doing DAL for using in application design. one is to use Code Generation tools such as general purpose tools like CodeSmith or to use specialized DAL generation tool like LLBLGen Pro. the other way will be using Object Relation Mapping (O/R Mapping) frameworks like NHibernate. Code Generation is fast since it's hard coded data access code and strongly typed. O/R Mapping frameworks majorly using Run-Time type mapping thus it's flexible and dynamic, but the performance won't be as good as code generated DAL sinces there will be one more tier to deal with Object Class and Relational Data mapping.
It should depends on solution design requirements to use either tools, but to all of them, it just showed that with good tools and frameworks, coding or developing desired software won't fall into boring works and will be fun and like art works!
Technorati Tags: codesmith , DAL , orm , database , programming , pattern