Home  /  Questions  /  Question



0   0
Mar 21, 2016


Unit of Work

I used your simple example in Spark 4.5 Application Platform to get Unit of Work going. 

I used the example in Art Shop (Service.vb) and all inserts work even though an error is generated within the Using statement. 

Is there further setup of Unit of Work beyond what is shown in Service.vb? 

Thanks

Joe Meyer
 1 comment
 
Note: In Art Shop (Service.vb) I threw an exception after the Order inserts, but the data was inserted anyway. Is this how Unit of Work is supposed to behave? --- Joe Meyer  Mar 21, 2016



508   99.9
Apr 04, 2016
Yes, we are aware that SPARK is not handling the Unit of Work functionality  correctly. 
The upcoming VS 2015 / .NET 4.6  / .NET Core 1.0 release will have this corrected.  

In the meantime, we wrote a post in this forum on how to correct this (in C#). 
It is not too difficult but if you use VB you will need to translate a few lines of C# to VB. 

Hope this helps.