nhibernate - Create child by updating parent, or create explicitly?
What is the preferred method for creating children objects? Adding the child to a collection on it's parent and calling update on the parent, or Creating the child explicitly, add the child to a collection on the parent, and updating the parent? I'm struggling with #1. And it's hard enough that I'm thinking #2 is preferable (less "magic"). Radim Köhler Not sure what would be the "preferred method" (it could depend on who does prefer) . But I can share my way If the parent is a root entity, then we should save all the reference tree in in one shot: session.SaveOrUpdate(parent) . E.g. Employee