JayBee wrote:
So, in the first example where the order and order row are both added to the transaction, you could have also only added the order to the transaction and change the line newOrderRow.OrderID = newOrder.OrderID into newOrder.OrderDetails.Add(newOrder) or newOrderRow.Order = newOrder, and then do newOrder.Save(true)?
To make the orderrow be saved as well, you'd need a reference to it, so indeed either newOrder.OrderDetails.Add(newOrderRow); or newOrderRow.Order=newOrder and then do a recursive save