Hi
I have console application which uses C# classes generated by "SmartObjects - Services - Tester". I have also two SmartBox SmartObjects: SO1 and SO2. I would like to do something like this:
using (var ts = new TransactionScope(TransactionScopeOption.Required)){var so1 = new SO1();so1.Test1 = "TEST_1";var z = so1.Create();//throw new ApplicationException("TEST");var so2 = new SO2();so2.Test2 = "TEST_2"var zz = so2.Create();}
But there was no database transaction. I checked it by SQL Profiler.
I was trying to create third SmartObject which had method bind to two methods. One from SO1 and one from SO2 and there was still no transaction on database. I checked it by SQL Profiler. (screen1.png)
Then I changed SO1 to "Advance SmartObject" and then changed "Transaction" from Continue to Rollback. But when I clicked on finish button there was an error and no message in HostServer logs (screen2.png and screen3.png).
Is there any option to enclose two SmartObject methods to one database transaction?