Ricardo,  

Sorry for emailing you directly, but Google Groups isn’t posting my replies. 
(Or this one plus the previous two will all show up at once!)

By the way, your web site looks great. I think it’ll help me. Thanks for the 
link. :-)

I’m not sure I understand your advice, though. As you can see in the sources I 
posted, Cascading is configured in CompanyMap:

      HasMany( x => x.Contacts )  
        .Inverse()
        .Cascade.AllDeleteOrphan();


I wondered if you meant it needed to be configured at both ends of the 
relationship, so I changed ContactMap to have this call:  

      References( x => x.Company )  
        .Cascade.All()
        .Not.Nullable();


But still, if I comment out the two extra save calls, I get a 
StaleObjectStateException when I try to commit the transaction.

What am I misunderstanding?

--  

Charles

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to