Category Archives: NHibernate

Oxite Review

Several folks, including Microsoft employees and members of the Oxite team, have politely requested I do a post or few on the problems I see with Oxite and why I previously recommended that it is not a good example/sample from … Continue reading 

Also posted in altnetconf | 2 Comments

Mapping A State Pattern With NHibernate

In the comments of my previous post – Descriptive State Enumeration – Maxim Tihobrazov asked me to show how to map a state pattern with NHibernate; and I am more than happy to oblige! NHibernate Mapping Options I certainly don’t … Continue reading 

Also posted in Events | Comments Off

Finding Design Smells In Non-Design Related Places

In my last post, I talked about the idea of encapsulation and using it to ensure that our business rules were enforced correctly. What I didn’t talk about, though, was the second half of the conversation that my coworker and … Continue reading 

Also posted in Uncategorized | Comments Off

NHibernate Intro Screencast Source

A few folks have asked me recently to post the source/binaries for my recent NHibernate Intro screencasts that are currently up on Dimecasts.net.  So, here they are!   ZIP/Binary download: http://code.google.com/p/pablo/downloads/list Source Code Browse: http://code.google.com/p/pablo/source/browse/#svn/trunk/presentations/chadmyers/nhibernate-intro SVN Source Code Checkout: http://pablo.googlecode.com/svn/trunk/presentations/chadmyers/nhibernate-intro … Continue reading 

Also posted in Tools | 1 Comment

NHibernate DimeCasts.net Series

Derik Whittaker and his band of merry video elves over at DimeCasts.net have posted the 0th of about 5 parts to an NHibernate draft run-through presentation I did with a few of my colleagues. It was part of a presentation … Continue reading 

Also posted in castle, monorail | Comments Off

Integrating StructureMap and NHibernate with WCF

Following many examples I found online for other IoC containers, I borrowed utilized those designs to create a StructureMap instance provider.  One problem we ran into with that design was dealing with NHibernate.  Mainly, there are two types that are … Continue reading 

| Comments Off

Converting Columns To a Collection with a Nhibernate UserType

For some of you who have been using Nhibernate for a while, may found this old news, but I thought this was coolest thing ever (at least this week). I am working with a legacy database that is,.. unpleasant (yeah … Continue reading 

Also posted in Uncategorized | Comments Off

Strategies and discriminators in NHibernate

I recently posted about enumeration classes, and how I like to use them as a sort of “Enumerations with behavior”.  Not every enumeration should be replaced with a class, but that pattern helps quite a bit when I find a … Continue reading 

Also posted in git, gitosis | Comments Off

Parameter lists in NHibernate

Occasionally I need to return a set of entites that match a collection of parameters.  In SQL, I would use the “IN” clause, then manually create each parameter in ADO.NET.  With NHibernate, that’s not necessary anymore.  NHibernate has built-in capabilities … Continue reading 

Also posted in git, presentation | Comments Off

Why Use ActiveRecordMediator instead of NHibernate

My blog post on using ActiveRecordMediator to use the Repository pattern with ActiveRecord was discussed on Castle’s Forums.  A good question was raised in that forum, and other people that I talked to about using the Mediator class: “Why use … Continue reading 

Also posted in .NET | Comments Off