Chapter 18 Working with C#


Generating C# files

The files generated are generated with the .cs extension. A generation log file is also created after generation.

Steps To generate C# files:

  1. Select Language→Generate C# Code to display the Generation dialog box.
  2. Type a destination directory for the generated file in the Directory box.

    or

    Click the Select a Path button to the right of the Directory box and browse to select a directory path.
  3. Click the Selection tab to display the Selection tab.
  4. Select the objects to include in the generation from the tabs at the bottom of the page.

    Note   Select Tools
    All classes of the model, including those grouped into packages, are selected and displayed by default. You use the Select tools to the right of the Folder Selection list to modify the selection. The Include Sub-Packages tool allows you to include all classes located within packages.

  5. Click the Options tab to display the Options tab.
  6. <optional> Select the Check Model check box if you want to verify the validity of your model before generation.
  7. Select a value for each required option.
  8. Click the Tasks tab to display the Tasks tab.
  9. Select the required task(s).
  10. Click OK to generate.

    A Progress box is displayed. The Result list displays the files that you can edit. The result is also displayed in the Generation tab of the Output window, located in the bottom part of the main window.

    All C# files are generated in the destination directory.

 


Copyright (C) 2007. Sybase Inc. All rights reserved.