O'Reilly logo

NHibernate 3.0 Cookbook by Jason Dentler

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

Using the Burrows framework

The NHibernate Burrows framework works especially well for ASP.NET Web Forms applications. In this recipe, I'll show you how we can use Burrows to build an ASP.NET Web Forms application quickly.

Getting ready

  1. Download the latest NHibernate Burrows binaries from SourceForge at http://sourceforge.net/projects/nhcontrib/files/.
  2. Extract NHibernate.Burrow.dll, NHibernate.Burrow.AppBlock.dll, and NHibernate.Burrow.WebUtil.dll to your solution's Lib folder.
  3. Complete the Eg.Core model and mappings from Chapter 1.
  4. In the NHCookbook database, create at least 12 Product rows either by hand or by running the following SQL script at least 12 times:
    DECLARE @Count int; SELECT @Count = COUNT(*)+1 FROM Product INSERT INTO Product VALUES ...

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