Yassin,
>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.
I recommend setting a breakpoint in mmBusinessObject.TransactionRollback(string databaseKey) to see what's happening.
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com