开发者

Manually invoke MSLinqToSQLGenerator custom tool from a T4 file

开发者 https://www.devze.com 2023-03-07 02:01 出处:网络
I am creating a *.tt file to automate some generation processes within my solution and am stuck at how to manually invoke the \'MSLinqToSQLGenerator\' custom tool that LINQ uses. C开发者_如何学Can som

I am creating a *.tt file to automate some generation processes within my solution and am stuck at how to manually invoke the 'MSLinqToSQLGenerator' custom tool that LINQ uses. C开发者_如何学Can someone show me how this is done?


Have you considered the alternative of replacing the default custom tool (that uses T4 internally) with a T4 that produces the same output?

I did it with this external template when I needed to plug in additional functionality.

MSDN Documentation for the LINQ to SQL Generator

Two Custom tool s for a single file?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号