Discussion on:

2
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
Contributr
Are T4 templates something that you think you could use in your projects? What kinds of uses do you see for them?

J.Ja
Hi Justin,

Good to see a blog again on T4 templating. I started using these about a year ago to take away some of the mundane tasks associated with proper pattern development for backend systems.

Since that time I have developed several useful DSL files that I use T4 to create. These include a Database DSL which creates my DDL scripts and stored procedures, a data repository DSL that handles my ORM for data transfer objects, a business object DSL that creates a composite object model for combing DSL files into a more useful business object, and finally, a service DSL that creates a service model with REST to expose the ORM heirarchy to the UI.

I read/create all of the DSL files with T4 Templates. So when I am done I have a number of artifacts that would require a lot of boredom to produce such as interfaces (read and write), controllers, entities, etc.

My development also includes a 100% code coverage of unit testing modules to be sure that everything works.

Now that I have written a disertation the short answer is "Yes, I use T4 and do not know what I would do without it!".
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.