I realized today that part of my headache could be self induced....
Assumptions
1. Project is ASP.NET
2. Require Concurrency to be handled - suggested to use a TimeStamp.
3. On Edit post,
* the application receives the data
* loads the specific record (from database)
* applies the changes
* I do a save, that triggers the concurrency.
Questions
1. Since its stateless the and application needs to know the timestamp of the record at time it was edited, is the best approach to pass the timestamp value to the webpage (as a hidden field). And then on return have it update this field in the entity?
- If #1 is true then is there a special way that timestamp fields need to be passed to the web page and then retrieved? (Since its a Byte[] this is not your normal field.)