O'Reilly logo

NHibernate 3 Beginner's Guide by Gabriel N. Schenker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – Validating user input

In this exercise, we want to create a simple product inventory application. As part of this application, we want to validate the user input when adding, say, new product categories or deleting existing categories. We will implement this solution as a WPF application.

  1. Open Microsoft SQL Server Management Studio (SSMS) and log in to your local SQL Server Express. Create a new empty database called AdvancedValidationSample.
  2. Open Visual Studio and add a new WPF Application project. Call the project AdvancedValidationSample.
  3. Add references to NHibernate.dll, NHibernate.ByteCode.Castle.dll, and FluentNHibernate.dll to the project.
  4. Set Target framework of the project as .NET Framework 4.0.
  5. Add a Category class to the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required