Reputation: 18730
I have a 3-tier application:
The server uses Entity Framework 4 to read and write data to/from the database.
Imagine following situation:
RowVersion
property. At this point in time, the property is equal to null.RowVersion
property. But at the client side, that value is still equal to null.Are there any standard mechanisms for solving this type of problem?
Upvotes: 0
Views: 114
Reputation: 2042
I dont know how the system works inside (think communication between Client and Server goes using some API). As I see you trying to handle the situation when 2 clients modifying same entity and you need to notify the client if he is trying to save the version that is older that current.
So I will do next:
This is it in simplified way.
[Update]
Looks like in this article you will find the implementation that is very close to your needs: http://weblogs.asp.net/ricardoperes/archive/2012/05/28/yet-another-asp-net-mvc-crud-tutorial.aspx
Upvotes: 1