Pass transaction between classes

  • Thread starter Thread starter Ofir Amitai
  • Start date Start date
O

Ofir Amitai

Hi all,

I'm trying to pass a transaction between several classes.
I pass the connection & the transaction through all the classes I need and
all the updated are done.
My problem is when I try to do a Commit. I get the following error:

"This SqlTransaction has completed; it is no longer usable."

what a I doing wrong?

Thanks,
Ofir
 
You might be better off using COM+/Service Components; the programming model
is much simpler, especially when the transaction is more involved, including
passing transaction contexts across classes.

Here's some good info to get started:
http://www.gotdotnet.com/team/xmlentsvcs/

HTH,
 
PureObjects

PureObjects is a web based code generator that builds several major portions of a .NET application including the database access layer, stored procedures, business, and model layers for C# and VB.NET
http://www.pureobjects.com
 
Back
Top