The general format for named blocks is <#@ BlockName BlockSpecificData
#> or <#@ BlockName BlockSpecificData ##>. The
second format is used to ignore all white space characters (including the
EndOfLine symbol) starting from the ending tag ##> till either
the end of line or any non-white space symbol.
Currently the template engine supports two types of named blocks: Imports and InstanceMembers.
The Imports named block is used to declare namespace imports in the dynamically generated template class that extends the RapTier.Ate.TextFileGenerator class and represents the current template. For example:
<#@ Imports
using System;
using System.Data;
using System.Xml;
#>
The InstanceMembers named block is used to declare fields, methods, and properties in the dynamically generated template class that extends the RapTier.Ate.TextFileGenerator class and represents the current template. For example:
<#@ InstanceMembers
private int _myIntegerField;
public static string GetSqlName(string value)
{
return "[" + value + "]";
}
#>