Okay, I have changed my code to look like the following:Try
TransactionBegin(
"", IsolationLevel.ReadCommitted)
AblStmtRate.ParentBusinessObject = Nothing
AblStmtDays.ParentBusinessObject = Nothing Me.Save(True)
AblStmtDays.Save(True)
AblStmtRate.Save(True)
TransactionCommit("")
Catch ex As Exception
TransactionRollback("")
Finally
AblStmtRate.ParentBusinessObject = Me
AblStmtDays.ParentBusinessObject = AblStmtRate
End Try
It is now saving out the correct number of records, but the keys are not populating correctly for the parent/child relationships. They are still the temporary values like -1, -2. Usually these resolve after they are saved and the foreign key values are correctly set. This is not happening in the above code. Can you please tell me if I'm doing something incorrect here?