alkampfer on May 12th, 2010

T4 toolbox a very good Visual Studio addin to efficiently manage T4 template. If you move to the new version you should be aware that there is a breaking change in the base Template class. In old version you render all text inside the method RenderCore()

1: protected override void RenderCore()

[...]

Continue reading about T4 toolbox RenderCore() no suitable method to override

alkampfer on August 12th, 2009

I’m writing a simple Dto generator, and today I found a challenging problem. I supported dto composition like this:

I have a CustomerDto3 that have only CustomerId and ContactName properties, then I want to autogenerate a OrderTestDto that have a Customers property of type CustomerDto3. The syntax on My T4 generator is this one.

SyntaxCode syntax [...]

Continue reading about Manipulate Expression Tree in DtoGenerator