Must RTFM... ;)
On May 9, 5:20 pm, Hudson Akridge <
hudson.akri...@gmail.com> wrote:
> You don't want to clear out a persisted collection by newing the collection,
> you want to actually call .Clear() on the collection itself. If you've got
> your cascade set up correctly (all/all-delete-orphan) then NHibernate will
> remember that when it retrieved the collection back the first time, it had
> one element, then it had 0, then it had a different element in it. It will
> then issue a delete command on the first element, and an insert command on
> the new one.
>