I have couple tables in my schema with PK and FK relationship. I have created the DAL using SubSonic generator.
If I create new parent and its childs, how should I save both? separately or in one shot?
e.g.
Parent.Save();
ChildCollection.SaveAll();
I tried above, but it does not work because ChildCollection does not have its parent's Id. Is it that I have to assign parent Ids for each child my self or is there an option to save it all in one shot?
please advise...