| Author: |
my.generation |
| Type: |
Tutorial |
| Created: |
10/31/2005 3:33:28 AM |
| Last Updated: |
10/31/2005 3:33:56 AM |
Project Files - MyGeneration
MyGeneration Project Files
Overview
MyGeneration projects are a powerful feature of MyGeneration that is often overlooked. Essentially, a Project file
consists of a set of template instances. A template instance contains serialized input for one template execution cycle. For example,
when generating a stored procedure from a template, the template prompts the user to select tables to generate code for. There
are often many other settings that can be selected at this point as well. This collected information is what is stored in a "template
instance". Below is a step by step example with screenshots on how this is done in MyGeneration.
Creating a Project
- Create a new project file by either clicking the new project icon on the toolbar, or from the File menu as shown below.

- A new dockable window will display for the new project file.

- You can rename your project by right clicking on the project node and selecting edit.

- Optionally change the project name and description.

- If you want to organize your project file into different sections, you can optionally add modules. A module
is just a folder for grouping template instances. You can add a module by right clicking on the project node
and selecting Add Module from the context menu.

- Set the module name and description.

- Before recording template instances into the project, you should setup your default settings.

- You can save the default settings into the project or module. These settings will remain even if the default
settings are changed again in the application. You can cache different default settings in each module if you wish.

- To add a template instance, simply right click on a project or module node and select Add Template Instance.

- Type in the name for the template instance and select a template.

- When you click the "Record Template Input" button, you will see the template GUI popup and prompt you for user input.

- After clicking ok, your input will be saved in the template instance. If you click the "View Data" button, you can
see what input has been recorded.

- Now that you have template instances in your project, you can batch execute your template instances. This is very useful
on projects with fluxuating schemas. In this way, you can regenerate from multiple data sources to multiple target folders in a single click.

- The project execution status dialog will display and update as template instances complete execution.

- Make sure to click the save icon (or save from the file menu). The saved file is in an XML format. Below is what this project file looks like.

Justin Greenwood
MyGeneration Software
http://www.mygenerationsoftware.com/
October 31, 2005
|