Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BusinessObjects and Transactions
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01281684
Message ID:
01282073
Views:
7
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
Previous
Reply
Map
View

Click here to load this message in the networking platform