In nhibernate i am having two tables parent and child...
Parent--> parentid,name
Child --> childid,name,parentid
relation--> one to many
If i insert a record in a parent table at the same time i will insert many records in the child table without any issue..
but if i update the parent record the child table records are not updating instead of that its inserting again..
Below is my mapping code
Parent :
HasMany(x => x.Child)
.Not.LazyLoad()
.Cascade.All();
Child : References(x => x.Parent).Not.LazyLoad();