Generating C# 2.0 Code

PowerDesigner can generate C# 2.0 code.

  1. Select Language > Generate C# Code to open the Generation dialog box:

  2. Enter a directory in which to generate the files, specify whether you want to perform a model check, and select the appropriate target.
  3. [optional] Click the Selection tab and specify the objects that you want to generate from. By default, all objects are generated, and PowerDesigner remembers for any subsequent generation the changes you make.
  4. [optional] Click the Options tab and set any necessary generation options. For more information, see C# Generation dialog Options tab.
  5. [optional] Click the Generated Files tab and specify which files will be generated. By default, all objects and compilation units are generated, and PowerDesigner remembers for any subsequent generation the changes you make.
  6. [optional] Click the Tasks tab and specify any additional generation tasks to perform. For more information, see C# Generation dialog Tasks tab.
  7. Click OK to begin generation.

    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.


Created October 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com