Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BusinessObjects and Transactions
Message
From
15/01/2008 10:01:06
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
14/01/2008 14:44:19
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01281684
Message ID:
01281908
Views:
6
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
Previous
Reply
Map
View

Click here to load this message in the networking platform