Feeds:
Posts
Comments

Posts Tagged ‘C#’

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 [...]

Read Full Post »