Chapter 11 Generating .NET 2.0 Persistent Objects and Windows Applications


Adding NHibernate Support

PowerDesigner provides a NHibernate Extended Model Definition to generate NHibernate persistent files.

Steps To add NHibernate support:

  1. Verify that the current model has the target language C# 2.0 or Visual Basic 2005
  2. Select Model→Extended Model Definitions.
  3. In the List of Extended Model Definitions, click the Import tool.
  4. Select NHibernate in the O/R Mapping sub-tab and click OK to return to the model.
  5. Double-click the model name in the browser to open its property sheet, and click the NHibernate tab:
  6. Define the database connection parameters and other options. For more information, see NHibernate options.
  7. Click OK to return to the model.

You can also select the NHibernate Extended Model Definition when creating an OOM by clicking the Extended Model Definitions tab in the New dialog, clicking the O/R Mapping sub-tab, and selecting the NHibernate checkbox.

 


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