Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transactions
Message
From
29/07/2002 11:12:07
 
 
To
29/07/2002 10:54:37
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Miscellaneous
Thread ID:
00683519
Message ID:
00683533
Views:
24
Ken,

Don't use multiple connection objects. Seems to me that if you have a business reason for grouping various items together in one transaction, then there should be a business object that does this. You could have the data in multiple DataSets if need be, but you'd have one connection object and one transaction wrapped around multiple SqlCommand.ExecuteNonQuery() method calls.

DataSets are not business objects ... they are simply data.

~~Bonnie


>How do you manage transactions across multiple datasets (business objects) when each business object is using its own connection object? The ADO.Net model seems to be “connect, get/write data, disconnect” – but how do we get that to play with the idea of a multi-bus-object transaction?
>
>Thanks,
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform