How to implement a simple lock mechanism for multi-user application?
问题 I really don't want to re-invent the well here, so I'm asking for ideas to implement a simple (row) lock mechanism in a multi-user DB application. Suppose I have a Table called Products which of course has an ID (PK), and also a rowversion column (which is not used so far), and I want to allow only one user to be able to Edit a specific row. While this users is editing the record (after a "check in"), other users can only View this record (read-only), but not modify or delete it. when the