how i templates inside t4 classblock method?


i'm starting inspect t4 formula generation.



i have simple template hide small chunks c#/vb perform cunning stuff...



<#@ template language="vb" debug="true" hostspecific="true" #>
<#@ cost extension=".vb" debug="true" hostspecific="true" #>
imports system
<#for any list twine new string(0 {"table1","table2"}#>
public category <#=table#>da
open servant new
<#= writeconstructorbody() #>
finish servant
end class
<#next#>
<#+
open duty writeconstructorbody() string
relapse "' comment"
finish function
#>


this great.. however i means sure retard thus...



<#@ template language="vb" debug="true" hostspecific="true" #>
<#@ cost extension=".vb" debug="true" hostspecific="true" #>
imports system
<#
for any basetablename twine new string(){"table1","table2"}
writerecdatainterface(basetablename)
writerecdataclass(basetablename)
writedainterface(basetablename)
writedaclass(basetablename)
next
#>


then i means have writex methods exist category retard nonetheless themselves writable controlling formula instance ie transient formula blocks.



how i grasp this?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

using mvc, should hoop communication between views? between models?