
Chapter 11 Generating .NET 2.0 Persistent Objects and Windows Applications
Generating code for ADO.NET
In order to generate code for ADO.NET, you must have the .NET Framework 2.0 Visual Studio.NET 2005 or above installed:
To generate ADO.NET code:
- Select Tools→Check Model to verify if there are errors or warnings in the model. If there are errors, fix them before continuing with code generation.
- Select Language→Generate C# 2 Code or Generate Visual Basic 2005 Code to open the Generation dialog box:
- Specify the root directory where you want to generate the code and then click the Options tab:
- [optional] To use DAL, set the Generate DAL sources option to true. For information about the standard C# and VB.NET generation options, see the OOM User's Guide
.
- Click OK to generate code immediately or Apply and then Cancel to save your changes for later.
Once generation is complete, you can use an IDE such as Visual Studio.NET 2005 to modify the code, compile, and develop your application.
Copyright (C) 2006. Sybase Inc. All rights reserved.
|
|