You generate C# 2.0 source files from the classes and interfaces of a model. A separate file, with the file extension .cs, is generated for each class or interface that you select from the model, along with a generation log file.
The following PowerDesigner variables are used in the generation of C# 2.0 source files:
Variable |
Description |
---|---|
CSC |
C# compiler full path. For example, C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\csc.exe |
WSDL |
Web Service proxy generator full path. For example, C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin\wsdl.exe |
To review or edit these variables, select Variables category.
and click the
Option |
Description |
---|---|
Generate object ids as documentation tags |
Specifies whether to generate object ids for use as documentation tags. |
Sort class members primarily by |
|
Class members type sort |
|
Class members visibility sort |
|
Generate Visual Studio 2005 project files |
Specifies whether to generate project files for use with Visual Studio 2005. |
Generate Assembly Info File |
Specifies whether to generate information files for assemblies. |
Generate Visual Studio Solution File |
Specifies whether to generate a solution file for use with Visual Studio 2005. |
Generate Web Service code in .asmx file |
Specifies whether to generate web services in a .asmx file. |
Generate default accessors for navigable associations |
Specifies whether to generate default accessors for navigable associations. |
For information about customizing the files that will be generated, see "Templates and Generated Files" in Chapter 3, Extending Your Models with Profiles in Customizing and Extending PowerDesigner .
Task |
Description |
---|---|
WSDLDotNet: Generate Web service proxy code |
Generates the proxy class |
Compile source files |
Compiles the source files |
Open the solution in Visual Studio |
Depends on the Generate Visual Studio 2005 project files option. Opens the generated project in Visual Studio 2005. |
When generation is complete, the Generated Files dialog opens, listing the files that have been generated to the specified directory. Select a file in the list and click Edit to open it in your associated editor, or click Close to exit the dialog.