コード例 #1
0
        protected override string GetFileContent()
        {
            var template = new TCMainClassTemplate();

            template.Session = new Dictionary <string, object>()
            {
                { "TestModuleConfig", this.TemplateDataObject }
            };

            template.Initialize();

            return(template.TransformText());
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: akshay-1994/ATOM
        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());
        }