Quote:
do you mean you have created two pocos that map to the same table. one with all the columns and the other one with only some "light" columns, (+ other possibilities). this can be a nice workaround, but it would be nice addition to nhibernate if we define subsets of same poco with some kind of identifiers (named subsets) in the mapings file and specify that in the session while loading/upserting. only the concerned columns will be selected and put back to the data store.
Sorry for the late reply... No, I mean two pocos and two tables. I'm not sure the above solution would work. In my particular case I had a need to store uploaded images from a web site. My first attempt was to put the image with the related poco data, but I found myself not always needing to select the image data and conversely selecting the image when not selecting the rest of the data. So in my case 2 pocos was the best approach anyway.
In another app we stored PDF documents. We found issues listing the document info in say a grid so the user could click to the actual content in another page. We got around this by using a projection query to not select the PDF content when populating the grid, but looking back I felt a separate table and associated object would have worked better.