Mindscape
  • Register
  • Login
  • YOUR CART IS EMPTY
home
Software
  • Developers Toolbox
  • LightSpeed
  • Raygun
  • WPF Elements
  • Web Workbench
  • Metro Elements
  • Silverlight Elements
  • NHibernate Designer
  • Phone Elements
  • WPF Diagrams
  • Simple DB management
  • Visual Tools for SharePoint
Downloads
Store
  • Buy online
  • Purchase order
  • Volume discounts
  • Reseller
  • Software license
  • Contact sales
Blog
Support
About
  • About Us
  • Contact
  • Testimonials
rss
twitter
facebook
NHibernate Designer Getting started Features Documentation Download Licensing Buy now

Getting Started with the NHibernate Designer

The Mindscape NHibernate Designer installs into Visual Studio 2010. To use the designer, open or create a C# or Visual Basic project (typically a Class Library project), right-click the project in Solution Explorer and choose Add > New Item.

From the Add Item dialog, choose NHibernate Model.

Create a new NHibernate Model in Visual Studio

Visual Studio creates an empty NHibernate designer model. There are two ways of populating the model.

First, you can drag tables from Server Explorer (database-first development):

Database-first development with NHibernate Designer

Second, you can drag entities and associations from the Toolbox and define their attributes using the designer (model-first development):

Model-first development with NHibernate Designer

Of course, you can use a mix of these two styles, for example dragging tables to create the initial model then editing the entities in the designer.

To configure entities, associations or properties, use the Properties window:

Edit NHibernate model properties from the properties window

As you edit and save the model, the NHibernate Designer automatically generates C# or Visual Basic classes for you to use in your application code, and creates the NHibernate database mappings for these classes.

The designer can also help create configuration file entries and sample code for your NHibernate session setup. To get this, right-click the model and choose Get Started.

Get started quickly with NHibernate

As you make changes to your model, either database-first or model-first, you can keep the model and the database in sync using the Update commands:

Two way database syncronization with NHibernate

  • Download a PDF of this getting started guide.
  • Download the help file for the NHibernate Designer.
  • Download the help file for the NHibernate Designer.

Data Products

  • LightSpeed ORM
  • NHibernate Designer
  • SimpleDB Tools
  • SharePoint Tools

DevOp Tools

  • Raygun

Visual Controls

  • WPF Elements
  • WPF Diagrams
  • Silverlight Elements
  • Phone Elements

Popular Products

  • Web Workbench

    Modern web development for Visual Studio!

  • Mindscape Megapack

    All Mindscape products for one awesome price!

Quick Links

  • Forums
  • Blog
  • Register
  • Login
  • Contact us
  • Twitter
  • Facebook
  • Google+
  • YouTube
  • Linkedin
  • Rss

© Mindscape 2025. Mindscape is a registered trademark of Mindscape Limited.

  • Terms
  • Privacy