Hi,
I was after some advice or a starting point really.
We have a case where we have an object that is updated from an external source (a web service) at the same time (potentially) it is being used/updated by our custom client app. I.e the client app allows a user to click a button to call the webservice to retrieve a value - we wish to save that value back to the DB without committing all the other changes the user is making (we still want that to happen within the original workflow of the app when they hit 'save' for example).
The issue or advice I am after is, if I wish to persist this single value on our generated object that is being fetched from the external web service and save it to the db - without persisting any other changes to that object (i.e. what the user is doing within the client application), how would I best go about doing this?
I am aware of potential concurrency issues (i.e. multiple updates on the same object)
My algorithm (without knowing what LLBLGen is capable of) is to:
do an initial fetch to the db
(user optionally may make changes to this object through the client app)
call the web service
do another fetch to get the original object
make the web service change to the newly fetched original object
save the newly fetch original object
re-fetch from the db and set all the initial fetch values to it recursively (slow)
So thats the idea behind it, is there a way of having multiple updates to an object without having to refetch it and how do I go about updating only one property when saving?
Any help or general points in the right direction will be very much appreciated!
Please note we are using a fairly old version of llblgen (which we can't upgrade atm unfortunately) - version 2.6