views:

19

answers:

1

I am building a T4 template that will build a POCO from a LINQ to SQL entity, but right now it produces one POCO file based on one L2S entity. How can I reuse this remplate to iterate through all L2S entities and produce a POCO for each one, or for any chosen one?

+1  A: 

Take a look at http://t4toolbox.codeplex.com. You may want to read the tutorial articles that show you how to generate multiple files and check out the L2S generator.

Oleg

Oleg Sych