public void RenderProject(Project project) { _renderLogger.Log(LogType.Info, $"Start rendering project: {project.Name}"); var target = new CodeDom.Project { }; RenderModules(target, project.Modules); }
public void Render(CodeDom.Project target, Module module) { _renderLogger.Log(LogType.Info, $"Start rendering module: {module.ModuleName}"); var renderedModule = new CodeDom.Module { Name = module.ModuleName, Namespace = module.Namespace, TypeDeclarations = new List <CodeDom.CodeTypeDeclaration>() }; target.Modules.Add(renderedModule); RenderDesignObjects(renderedModule, module.DataModel.Enumerations); RenderDesignObjects(renderedModule, module.DataModel.Classes); RenderDesignObjects(renderedModule, module.DataModel.Entities); RenderDesignObjects(renderedModule, module.DataModel.Interfaces); _renderLogger.Log(LogType.Info, $"Finished rendering module: {module.ModuleName}"); }