Yassin,
>Hi there,
>
>I am trying to use Transaction's with MM.NET business objects, but apparently I think I am missing something.
>
>1. I have two business objects Customer and CustomerAddress and have registered CustomerAddress as the child of Customer object and have the following properties on the Customer Business object
>
>
> Public Sub New()
> Me.TableName = "CUSTOMERS"
> Me.PrimaryKey = "CUSTNMBR"
> Me.DefaultCommandType = CommandType.StoredProcedure
> Me.DatabaseKey = "BACKOFFICE"
> Me.AutoUseTransactions = True
> Me.AutoSaveOnParentSaved = True
> Me.AutoCancelOnParentCancel = True
> end Sub
>
>
>2. But when I save the business objects and have problems with CustomerAddress object the transaction that was added on Customer never roll backs.
>
Take a look at the "Working with Transactions" under "Data Access with Business Objects" section of the MM dev guide. It has great info on how to use transactions.
Tim
Timothy Bryan