This project is read-only.

Generate multiple files from single input

Oct 31, 2009 at 8:43 PM

Hi all

What's the best way to implement a single-input-multiple-output template? Am I right to attempt that or this is the task of code generator and not of a template?

Thanks in advance

Nov 1, 2009 at 1:11 AM
I am not exactly sure what you mean by 1 input and multiple outputs.

But it may help to know that I uploaded a full, working sample,
Repository pattern, in the Patches section-- it outputs one Manager
per table.


Nov 1, 2009 at 1:11 PM

Using T4 Toolbox terminology, you need one Generator class per input and one Template class for each output type. A single Template instance can be reused to create multiple output files of the same type. Mark's sample illustrates this approach. Here's the background information on the subject:


Nov 2, 2009 at 7:29 PM

romanfq --

FYI, I have added a new version of my sample at this link with the name of file being this "" so check it out if you dare.



Thank you.

-- Mark Kamoski