Using T4 Templates for Simple DTOs
Posted by: K. Scott Allen,
on 28 Oct 2009 |
View original | Bookmarked: 0 time(s)
Im looking at 5-7 files of data in CSV format. The columns and format can change every 3 to 6 months. What I wanted was a strongly type wrapper / data transfer object for all the CSV file formats I had to work with, and I thought this would be a good opportunity to try a T4 template. If you havent heard of T4 templates before, then it is a technology that is worth your time to investigate. Hanselman has a pile of links in his post T4 (Text Template Transformation Toolkit) Code Generation Best...