Esempio n. 1
0
        private static string GetParentSuffix(ITemplateData currTemplate)
        {
            string suffix = currTemplate.GetSetting(CommonVariables.ParentSuffix);
            if (suffix == null)
                suffix = currTemplate.GetVariable(CommonVariables.ParentSuffix);

            if (suffix == null)
                suffix = "Parent";

            return suffix;
        }
Esempio n. 2
0
        internal static string GetClassPrefix(string tableName, ITemplateData currTemplate)
        {
            string className = ClassItemTemplate.GenerateClassName(tableName);
            if (currTemplate != null)
            {
                string suffixReplacementMap = currTemplate.GetVariable(SuffixReplacementMapVariableName);
                if (!string.IsNullOrEmpty(suffixReplacementMap))
                    className = TextUtil.ReplaceSuffixes(className, suffixReplacementMap);
            }

            return className;
        }
Esempio n. 3
0
        private static string GetRecursiveParentSuffix(ITemplateData currTemplate)
        {
            string suffix = currTemplate.GetSetting(CommonVariables.RecursiveParentSuffix);
            if (suffix == null)
                suffix = currTemplate.GetVariable(CommonVariables.RecursiveParentSuffix);

            if (suffix == null)
                suffix = "Superior";

            return suffix;
        }