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; }
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; }
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; }