Open codemonkey21 opened 10 years ago
Hi,
I agree that concurrency conflicts is an important topic. Let me write my opinions:
First of all, there is no restriction in ABP to use the techniquies described in given link. You can do with EF whatever you can do with it without using ASP.NET Boilerplate.
The point is that: It's a little hard thing to implement concurrency as described in given link. Also, it requires similar works for all entity types. Can ASP.NET Boilerplate provide a common and easy way for that? Yes, it can :) Is it a feature of an application framework? Yes, I think. When? I don't know, we should plan it. How? We can discuss it here for different approaches. It may be like that:
We can define an interface (like IHasConcurrency) that defines a RowVersion property as like in the article. Then, rest is done by ABP like that:
What's your opinion?
I agree that this interface is the way to go. I was originally planning on creating my own interface for it, but wasn't sure if it would conflict with the deeper levels of ABP which is why I suggested it here. I like your suggestions.
EF provider ConcurrencyCheck Attribute control esignates that a property participates in optimistic concurrency checks.
+1
+1
+1
+1
+1
Any idea when we can expect this to implemented in ABP
+1. Hope this can become a feature enahancement.
The reason I'm such a huge fan of checking for this is that most web applications have multiple users. Take your TaskEver example, a task could easily be updated by more than one user at the same time, thus creating the concurrency conflict.
Example of how this can be done. http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/handling-concurrency-with-the-entity-framework-in-an-asp-net-mvc-application