Nhibernate Merge with new object graph No row with the given identifier exists?

You may use cascade or merge the child separately.

You may use cascade or merge the child separately: ... Merging the children separately: foreach(Child child in parent. Children) { session. Merge(child); } var mergedParent = session.

Merge(parent); I'm actually not sure what happens if the children are already in the session cache but the parent is not. You probably need to build an instance with all the merged data yourself.

I tired, cascade. All, and merge child before parent, but it doesn't work either. In that case I receive exception on merging child that parent doesn't exist.

– Alex Burtsev Jan 17 at 9:51 and cascade=all without merging the children before? – Stefan Steinegger Jan 18 at 7:20.

Adding cascade="merge" or cascade="all" on parent does the job.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions