c# How to embed Transaction codings across different files

  • Thread starter Thread starter iHandler
  • Start date Start date
I

iHandler

Guest
Normally, we use .BeginTransaction() and .Commit() to handle several sql statements within a class. However, what if the sql statements locate across different .cs files? In this situation, how to embed Transaction coding?

For example,

UpdateProducts.cs
...sql update statement

UpdatePricing.cs
...sql upate statement

UpdateLog.cs
...sql update statment

Please advise

Continue reading...
 
Back
Top