This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Andrew, I'm having yet more problems with my winforms app - attached is a repro where I try to soft delete a Customer entity - but I just can't get Lightspeed to perform the update. I can see that the entity correctly enters the Deleted state, but nothing happens when CompleteUnitOfWork() is called. Is this another bindingsource related problem? On a side note - I wonder if there is any additional state info that could be provided by the framework - something that springs to mind is the ability to query for the UnitOfWork stack depth - this might help to identify situations where nested UOWs are being created unexpectedly. Is there any other state information that you think would be useful for debugging? Anyway, I'd appreciate it if you could take a quick look at the attached and provide some comment, Cheers, Greg |
|
|
Hi Greg, This is simply caused by not attaching the entity to the new UOW before removal. To make it easier, I've just committed a change so that detached entities are now re-attached automatically if you call Remove on them. Hope this helps, Andrew. |
|
|
Hi Andrew, Oh that's a simpler fix than I was expecting. Thanks. Greg |
|