*NH & .Net (asp)*
I use fluent mapping
I have a class 
public class ParentMap : ClassMap<Parent>
//...
HasMany(x => x.PlanChild)
               .Cascade.AllDeleteOrphan()
               .Inverse();
//....
(+ PlanChild has map)
but if I clear/save my PlanOrder so:
*parent.PlanChild.Clear();
**parent**.**PlanChild**.Add(// here item );*
then I can't delete parent
else if I update my plan with SQL commands
I can delete parent

-- 
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to