Are T4 templates something that you think you could use in your projects? What kinds of uses do you see for them?
J.Ja
Discussion on:
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!".
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









































