In my previous post, I wrote a post regarding Multiple Records Manipulation using SqlTransaction, but after discussed with the team. I should use TransactionScope in Business Logic Layer which we used to write the code in Controller class.
Here the example.
Must include this namespace “System.Transactions”
public void AddMultipleUserSurvey(List<UserSurveyInfo> objUserSurveyInfoList, int userID)
{
using (TransactionScope objScope = new [...]
Posts Tagged ‘C#’
Using TransactionScope in DNN
Posted in DNN Deployment, DNN Module Development, dnn, dotnetnuke, tagged C# on December 6, 2008 | Leave a Comment »