Category Archives: NHibernate

Article series on NHibernate and Fluent NHibernate – Part 2

Today the second part of my series on NHibernate and Fluent NHibernate went live. You can read it here. Summary In part 2 of the article series I have continued to implement the remaining part of the domain which I … Continue reading 

Also posted in Fluent NHibernate, introduction | Comments Off

Article series on NHibernate and Fluent NHibernate

I have been invited to write a series of articles on NHibernate and Fluent NHibernate on The first part of this series has just been published. I invite you to read it here. In this series I start from … Continue reading 

Also posted in Fluent NHibernate, introduction | 1 Comment

Need Advice: Teach NHibernate with Fluent NHibernate or Without?

I’m in the process of writing an upcoming article for CoDe Magazine about getting started with NHibernate. I’ve spoken with several people about my approach and the majority of them seem to agree that I should use Fluent NHibernate for … Continue reading 

| Comments Off

NHibernate + XML Columns

One of the things I’ve been working on recently involves using XML columns in SQL Server.  Starting out, it was simple and I was just doing vanilla ADO.NET (wrapped in a simple Query API) combined with XML serialization/deserialization, which worked … Continue reading 

| Comments Off

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 

| Comments Off

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 Fluent NHibernate, introduction | 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 design, patterns, practices, SOLID | 8 Comments

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  So, here they are!   ZIP/Binary download: Source Code Browse: SVN Source Code Checkout:

| Comments Off

NHibernate Series

Derik Whittaker and his band of merry video elves over at 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 CQRS, Event sourcing, no-database | 13 Comments

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