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