I've updated the CodeProject article NHibernate Best Practices with ASP.NET, 1.2 ed with a number of very important fixes and pedagogical expansions. (I've been waiting for an excuse to use that word.) If you've been using the sample code as a foundation for your project, these changes will be important to you. Here are a few:
- Example code has been added to demonstrate using NHibernate with custom collections. A new page called ListSuppliers.aspx then leverages the custom collection. The article has also been updated to explain the technique.
- The Model-View-Presenter example has been expanded to include the EditCustomer.aspx page; this page contains three views on a single page with event handling and application flow separated from the views.
- Overhauled the DomainObject base class to be in-line with a previous post concerning the use of Equals and GetHashCode.
- NHibernate can return strongly typed lists, natively. The generic DAO, included with the sample, now includes this capability.
- Bug: Transaction rollbacks were not previously working. This has been fixed.
- Bug: Closing the NHibernate session was not flushing changes made to data. So if you weren't using a transaction, changes weren't being committed; this has been fixed.
- Date manipulation has been fixed to allow the unit tests to pass in different localizations.
- Added support for IIS 7 to work with the HTTP modules.
- A number of other fixes and enhancements have been included.
I'll be kicking off a contest later this week concerning a needed refactoring to the "enterprise" sample code...only the first correct submission will be a winner, so stay tuned to devlicio.us for details.
Billy McCafferty
Posted
05-02-2007 4:24 PM
by
Billy McCafferty