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