I have a classic Order and OrderLine tables. When I get an order when I try to load the OrderLines I receive an exception. The code look correct and the NHProf log show me an error in the query.
I join the NHProf log.
The mapping is for Order object :
OrderLine object :