asp.net2.0事务

做个备份:
TransactionOptions TransOpt = new TransactionOptions();
        TransOpt.IsolationLevel 
= System.Transactions.IsolationLevel.ReadCommitted; 
        TransOpt.Timeout 
= new  TimeSpan(020);
        
using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, TransOpt))
        
{
            
//int tgroupid = tgroup.Add(tgroupinfo);操作
            
//usersinfo.TgroupID = tgroupid;
            
//users.Add(usersinfo);
            scope.Complete();
        }

posted on 2007-11-20 11:21  叶子绿了  阅读(199)  评论(0编辑  收藏  举报

导航