Transactional Stored Procedure Call


Author
Message
Ertan Deniz
Ertan Deniz
StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)
Group: Forum Members
Posts: 163, Visits: 493
As an example, I have a method implemented with an SP with some business logic inside. (XOperations.UpdateX)

And I need to call this method as a part of a transaction.

BeginTransaction ;

Object1.Save ;

Xoperations.UpdateX;

Object2.Save;

Commit;

I've found that DbSourceItem.ExecuteNonQuery method has a transactional parameters.

Should I use DbSourceItem.ExecuteNonQuery  method ? Or anything else ? 

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search