I was using EF. and everything was okay, because I was submitting the changes using the QDSCV, But I want to use the OA instead and I am handing the exceptions that way, also I want to centralize the CRUD operation using OA, right approach .. I guess.
I will try the DCV.. today.
I guess it is something with the Async. calling, I mean I call the two functions sequently, so the second one (which is the load) is not taking the time to do it's job.I believe I need to wait until the commit finish then call the load, but I can't see how can I do that, If you can help me will be great.
The button is calling the refresh method that is using the Background worker. I just call that method after submitting the changes.
Here is the refresh method:
and here is where I delete the record & then call the refresh:
The Items is the QDSCV and CurrentItem is the Entity object.
I hope you can help me in this matter.