One to one (or zero) relationship using NHibernate

by Hallstein Brøtan

One-to-one (or zero) is a common relationship. It's when you want to store some optional information about something, but don't want all the columns in the same table. Still, I often find it unnecessary complicated when using an ORM like NHibernate or Entity Framework. I also see people avoiding this…