May 2008 Entries
Introduction Lately there have been many questions regarding how to best map a tree structure in NHibernate. In this post I'll try to show you various techniques how one can deal with a tree structure. The code for this sample you can get from here. Domain Model Let's define a very simple domain model for this sample. We have a single class called Equipment that has a parent of type Equipment and 0 to many children of type Equipment. The tree has a single root node. The root node is specific by the fact that it's...
Lately I had the joy to load a complex object graph from a (legacy) MS Access database. Some findings: MS Access does not support the multi-query or multi-criteria API. My first implementation using lazy load was very very slow since it created way to many database hits The domain model Let's have a look at the (simplified) domain model. The object graph I am talking about represents a chart with several data series in it. Each data series (or curve) consists of one to many segments. Between two...