示例#1
0
        protected void ExecuteInReadUnCommitedIsolation(Action operationsDelegate)
        {
            TransactionOptions opts = new System.Transactions.TransactionOptions();

            opts.IsolationLevel = System.Transactions.IsolationLevel.ReadUncommitted;
            using (NgTsTransactionScope tranScope = new NgTsTransactionScope(TransactionScopeOption.RequiresNew, opts))
            {
                operationsDelegate();
                tranScope.Complete();
            }
        }
 public void UpdateProduct( Product product)
 {
     if (null ==  product)
     {
     throw new ArgumentNullException("Product");
     }
     using (NgTsTransactionScope scope = new NgTsTransactionScope())
     {
     _AddUpdate( product);
     scope.Complete();
     }
 }
示例#3
0
 public void UpdateNgTsUser(NgTsUser ngtsuser)
 {
     if (null == ngtsuser)
     {
         throw new ArgumentNullException("NgTsUser");
     }
     using (NgTsTransactionScope scope = new NgTsTransactionScope())
     {
         _AddUpdate(ngtsuser);
         scope.Complete();
     }
 }
 public void UpdateNgTsUser( NgTsUser ngtsuser)
 {
     if (null ==  ngtsuser)
     {
     throw new ArgumentNullException("NgTsUser");
     }
     using (NgTsTransactionScope scope = new NgTsTransactionScope())
     {
     _AddUpdate( ngtsuser);
     scope.Complete();
     }
 }
示例#5
0
 public void UpdateProduct(Product product)
 {
     if (null == product)
     {
         throw new ArgumentNullException("Product");
     }
     using (NgTsTransactionScope scope = new NgTsTransactionScope())
     {
         _AddUpdate(product);
         scope.Complete();
     }
 }