G
Guest
Hi,
I have an ASP.NET app with a Business Layer and a DataLayer.
In my DataLayer I user the Microsoft Data ApplicationBlocks (Sqlhelper class)
From my ASP.NET Page I call a Save Method on two different Business Objects
to save data to two different tables.
Can I pass a Transaction into both calls so that it is used.
I looked at SqlTransaction but this needs a connection to be opened and then
assign the transaction to the connection. I don't open connections. I simply
pass my connection string to teh ExecuteReader on my SqlHelper Class.
Any advice is much appreciate on how I can use Transactions across multiple
business objects is appreciated.
Thanks.
I have an ASP.NET app with a Business Layer and a DataLayer.
In my DataLayer I user the Microsoft Data ApplicationBlocks (Sqlhelper class)
From my ASP.NET Page I call a Save Method on two different Business Objects
to save data to two different tables.
Can I pass a Transaction into both calls so that it is used.
I looked at SqlTransaction but this needs a connection to be opened and then
assign the transaction to the connection. I don't open connections. I simply
pass my connection string to teh ExecuteReader on my SqlHelper Class.
Any advice is much appreciate on how I can use Transactions across multiple
business objects is appreciated.
Thanks.