nHibernate one-to-many inserts but doesnt update
- by user210713
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.