HOME         User: Anonymous search for  in 
Login
Username:

Password:

Navigation
Registered User Functions:
  1. Register New Account
Anonymous Functions:
  1. Home
  2. Users
  3. Archives
  4. Templates
  5. Articles
  6. MyGeneration Website
  7. MyGeneration Forums
Categories
    Application Type
    1. Command Line
    2. Graphical User Interface
    3. Library
    4. Sample
    5. Web Application
    Architecture Type
    1. Client-Server
    2. Distributed Computing
    3. Multi-Tier
    4. Peer-to-peer
    Operating System
    1. Linux
    2. Win32
    Programming Language
    1. ASP
    2. ASP.Net
    3. C#
    4. C++
    5. Firebird SQL
    6. J#
    7. Java
    8. Jet SQL
    9. JScript
    10. JSP
    11. MySQL
    12. Perl
    13. PHP
    14. PL/SQL
    15. PostgreSQL
    16. SQL
    17. Transact-SQL
    18. VB.Net
    19. VBScript
    20. XSLT
    Article: MyGeneration Project Files
    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

    1. Create a new project file by either clicking the new project icon on the toolbar, or from the File menu as shown below.
    2.  
    3. A new dockable window will display for the new project file.
    4. You can rename your project by right clicking on the project node and selecting edit.
    5. Optionally change the project name and description.
    6. 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.
    7. Set the module name and description.
    8. Before recording template instances into the project, you should setup your default settings.
    9. 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.
    10. To add a template instance, simply right click on a project or module node and select Add Template Instance.
    11. Type in the name for the template instance and select a template.
    12. When you click the "Record Template Input" button, you will see the template GUI popup and prompt you for user input.
    13. 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.
    14. 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.
    15. The project execution status dialog will display and update as template instances complete execution.
    16. 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

    Messages (by Message)
    Message
    2/12/2007 3:27:48 PM by mfreidge :
    Names ofmenu/Buttons are sometimes confusing. "Add Module"- should be "Add Folder". "Cache Default Settings" - should be "Save Default Settings". "Record Template Input" - should be "Edit Template Input".
    12/19/2006 3:12:57 PM by mfreidge :
    It will be good to add this article to MyGeneration Help
    12/18/2006 11:03:26 PM by mfreidge :
    I have a couple suggestions re Project files UI. In Add Template Instance dialog – it will be good to allow copy of “Template name” from the list to the new Name textbox. In “Select Tables" section it will be good to add “Check boxes” and button “Toggle selected” (may be also “Select All”/”Deselect All”). It also will be good to have Tables and Views as tabs and remember selection if someone changed from Tables to Views and vise Versa.
    Copyright © 2004 MyGeneration Software. All rights reserved.
    Feedback: feedback@mygenerationsoftware.com
    Support: support@mygenerationsoftware.com