Showing related tags and posts accross the entire site.
-
I am new to NetTiers and so far love it. I am trying to learn it in the following scenario: My Windows App -> Service Layer -> WebServiceClient -> WebServices -> SqlClient -> Data. I want to insert two different types of entities within a database transaction. I noticed that I possibly...
-
You would something along the lines of: TransactionManager tm = null; try { tm = ConnectionScope.ValidateOrCreateTransaction(true); // or use ConnectionScope.CreateTransaction() if u prefer order.save(); customer.save(); tm.Commit(); } catch (Exception ex) { tm.Rollback(); } You would not create another...
-
Hi all, I've noticed that the code-generated unit tests do a transaction rollback in the Cleanup_Generated method, so that unit test data does not clutter up the database. However, the tests use the DataRepository rather than the ServiceLayer. It appears the ServiceLayer automatically commits any transaction...
-
Hello, We are using netTiers in our application. We have generated two project say A and B. Can we use Transaction manager of A in B ? We need this because some of tables requiring updates are in DataBase A while others are in B. In order to ensure these updates in one transaction, what is the best approach...
-
Is possible to use DataRepository with TransactionManager? Could someone give me some example? Thanks OQ