示例#1
0
        private static string TranslateToModelSourceCode(IEnumerable <ClassTemplateInfo> dataClassesInfo)
        {
            var runtimeTextTemplate = new RuntimeTextTemplate
            {
                Session = new Dictionary <string, object>
                {
                    { "namespaceName", "Model" },
                    { "classes", dataClassesInfo }
                }
            };

            runtimeTextTemplate.Initialize();

            return(runtimeTextTemplate.TransformText());
        }
示例#2
0
        private static string TranslateToModelSourceCode(IEnumerable<ClassTemplateInfo> dataClassesInfo)
        {
            var runtimeTextTemplate = new RuntimeTextTemplate
                {
                    Session = new Dictionary<string, object>
                        {
                            { "namespaceName", "Model" },
                            { "classes", dataClassesInfo }
                        }
                };

            runtimeTextTemplate.Initialize();

            return runtimeTextTemplate.TransformText();
        }