nHibernate one-to-many inserts but doesnt update

Posted by user210713 on Stack Overflow See other posts from Stack Overflow or by user210713
Published on 2009-11-14T00:14:35Z Indexed on 2010/04/05 2:03 UTC
Read the original article Hit count: 279

Filed under:
|
|

Instead of getting into code, I have a simple question. Default behavior for a simple one-to-many is that it inserts the child record then updates the foreign key column with the parent key.

Has anyone ever had a one-to-many where the child object gets inserted but not updated resulting in a row in my table with a null in the foreign key column?

I want the default behaviour for a standard one-to-many. I don't want to have to add the parent as a property to the child.

Thanks.

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about one-to-many