public string RenderOutput(TablesWithColumnsDto tableWithColumnsDto) { var templateType = Global.IsNameSpaceEnabled ? TemplateType.Namespace : TemplateType.Class; var result = string.Empty; if (tableWithColumnsDto != null) { result += _generateTemplate.Generate(templateType, tableWithColumnsDto); } return(result); }
public string RenderOutput(IEnumerable <TablesWithColumnsDto> tablesWithColumnsDto) { var templateType = Global.IsNameSpaceEnabled ? TemplateType.Namespace : TemplateType.Class; var result = string.Empty; if (tablesWithColumnsDto != null) { tablesWithColumnsDto.ToList().ForEach(x => result += (string.IsNullOrEmpty(result) ? string.Empty : Environment.NewLine) + _generateTemplate.Generate(templateType, x)); } return(result); }