标签: templates code-generation t4
我正在创建一个* .tt文件来自动化我的解决方案中的某些生成过程,并坚持如何手动调用LINQ使用的'MSLinqToSQLGenerator'自定义工具。有人能告诉我这是怎么做到的吗?
答案 0 :(得分:2)
您是否考虑过使用产生相同输出的T4替换默认自定义工具(内部使用T4)的替代方法?
当我需要插入其他功能时,我使用此外部模板完成了它。
MSDN Documentation for the LINQ to SQL Generator
Two Custom tool s for a single file?