Many thanks, the system is now picking up concurrency issue.
One final problem I am having. I cannot work out how to provide a sensible error message to the users in this instance. The Dynamic Web Api returns a generic message. Is there a way I can override this behaviour when encountering a concurrency exception?
Cheers
I'll update and give it a go.
Many thanks.
Thanks for the explanation.
I have been unable to code anything, as the version of Abp I am using does not have the ApplyAbpConceptsForModifiedEntity method available for override. The Abp.EntityFramework dll is at version 2.01. I am using aspnet zero v4
Hi,
I don't seem to have this method available. I am using v4 of Aspnet Zero, MVC, jQuery.
Not quite sure how I would achieve my aim with this method anyway?
Cheers
Many thanks, that is probably the issue I am having.
The (best) solution to this problem is to set the Row Version in the Original Values collection prior to update. I will therefore need to override the update method. I assume the way to do this is via a custom repository?
If so, how do I get the framework to call this rather than the default Update method? If I call it manually, how do I ensure that the default Update method doesn't get called by the Unit Of Work manager?
Cheers
Hi,
Basically, I am not getting a DbUpdateConcurrencyException when I perform a second update on stale data. I have checked that the row version updates in the database, but EF does not object to performing the second update with the old row version.
Apologies for the delayed response, I have been away in the sun for a week.
Thanks for that. Any reason why client cache is disabled by default in the system?
Regards
Thank you.
I have another related issue. I am using the method you propose to save data against a user session. The problem I am now getting is that many of my unit tests, that rely on this data, are now failing. How can I inject this new session data into the unit tests?
Many thanks
Apologies, but I have just realised that the example given is for Core. Would you please be able to give an example of how this could be achieved in MVC5.
Thank you.