OxyGen Code Generator Overview. 4   Table of Contents. 4
Previous Topic: Creating Code Generation Projects. 4   Next Topic: Appendix A – Processing Instruction Types. 4

 

Publishing the Generated Code

1.       Open OxyGen Code Management Studio.

2.       In the Connect to Server dialog specify the Server Name, the Authentication mode, user credentials (if SQL Server Authentication is selected), and then click the Connect button.

The Database Explorer tree control is populated with the databases for the specified server. Accessible databases are depicted by an enabled cylinder () while the databases that are not accessible are depicted by a disabled cylinder ().

 

 

NoteNote

In Windows Vista, some of the databases may be not accessible if Windows Authentication is selected and the application does not run under an administrator role.

  1. Click the Tools\Source Code Explorer menu item. Select the output folder where the source code has been generated.
  2. Click OK to open the list of source code sessions. The Source Code Session Selection dialog box is displayed (as shown in the following screen shot) if there is at least one code generated session in this folder.

Figure 64: Source Code Session Selection dialog box

  1. Select a code generated session for the list view.
  2. Click OK to open the selected code generated session or Cancel to discard the action and close the dialog.
  3. The Source Code Explorer dialog box is displayed as shown in “Figure 65: Source Code Explorer”.

 

Figure 65: Source Code Explorer

8.       To publish generated code click the Publish menu item and choose what kind of files you want to publish. If you want to publish only a specific part of generated code (i.e. only Stored Procedures ) click Publish\Publish Stored Procedure files…. If you want to choose some specific files from all generated files click the Publish\Publish Code Generator Session… menu item. The Publish Generated Code dialog box is displayed as shown in “Figure 66: Publish Generated Code dialog”. Select the generated code files and choose the destination folder.

 

Figure 66: Publish Generated Code dialog

9.       Check files that you want to publish in a specified folder. Click the OK button to publish the selected files. The following screen shot shows the Publish Generated Code Progress dialog box.

Figure 67: Publish Generated Code Progress bar.

10.    Selected files were copied to specified folder.  If you previously published files to the specified folder, the publication mechanism replaces all files in the Generated folders.  The content of the Custom folders is not replaced.  The generator will not replace or delete methods in any file contained by the Intercepts folder and inject additional methods that are not already defined, into the matching files within this folder.

OxyGen Code Generator Overview. 4   Table of Contents. 4
Previous Topic: Creating Code Generation Projects. 4   Next Topic: Appendix A – Processing Instruction Types. 4