Esempio n. 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();
     }
 }
Esempio n. 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();
     }
 }
Esempio n. 5
0
 public void UpdateProduct(Product product)
 {
     if (null == product)
     {
         throw new ArgumentNullException("Product");
     }
     using (NgTsTransactionScope scope = new NgTsTransactionScope())
     {
         _AddUpdate(product);
         scope.Complete();
     }
 }