protected override string GetFileContent() { var template = new TCMainClassTemplate(); template.Session = new Dictionary <string, object>() { { "TestModuleConfig", this.TemplateDataObject } }; template.Initialize(); return(template.TransformText()); }
static void Main(string[] args) { TestModuleConfig tc = new TestModuleConfig() { ModuleId = "CONTDWR", ModuleName = "Daily Progress Report", TableName = "DPRTable", PrimaryKeyColumnName = "ID", }; var template = new TCMainClassTemplate(); template.Session = new Dictionary <string, object>() { { "TestModuleConfig", tc }, }; template.Initialize(); Console.WriteLine(template.TransformText()); }