I had to workaround the issue using this kind of code:

                        var rcpts = message.Recipients.ToArray();
                        messageRepo.Save(message);

                        nhContext.CurrentSession.Flush();

                        message.Recipients.Clear();
                        message.Recipients.AddRange(rcpts);
                        messageRepo.Update(message);

instead of simple messageRepo.Save(message). The associated Recipients
are finally saved when I save the entity, flush the session and than
reset the Recipients association and update the entity once more.
Unfortunately I'm not able to figure out what's going wrong here when
the same code (messageRepo.Save(message)) against SQLite just works...

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to