Collect NHibernate 'Write Only' if there is such a thing?

Does anyone know if it is possible to add an item to a collection without loading stored items in it? Is there a comparison that will allow me to achieve this?

I have a scenario where I do batch processing on some client objects. I want to add some notes to my clients as I go, but I don’t want / need notes already saved for this client, as this is a background process and just adds to the collection.

+3
source share
3 answers

, - Note, Customer . , .

+1

I think you should look for HQL updates / inserts, because if you want to work with entities in the collection without loading the collection and not related to the elements of the collection, this is what might be available.

0
source

All Articles