Концепция блокировки при доступе нескольких пользователей к файлу .mdb с помощью winforms
Привет,
I have table in .mdb file (say TVehicle) where it contains 'ID', 'make', 'model', 'series' columns with around 50-100 records. There is a Winform tool which fetches these data and show the rows in UI. Now one user (say U1) access these records & selects a vehicle (row from grid) and tries to edit the veihcle. Now when another user U2 tries to edit same vehicle, the user must get notification that user U1 is already engaged with the vehicle you selected so please wait until U1 releases. I need some good logic for locking the rows when a specific user edits the row. (I open a new winform dialog when user double clicks the row in grid for edit). Please help me on this.
Что я уже пробовал:
Я создал другую таблицу Tпользователь, при U1 правки строки, данные, как автомобиль-идентификатор, идентификатор пользователя будет вставлен в таблицу Tпользователь и запирании автомобиля. Когда пользователь закончит редактировать и сохранит запись, запись в TUser будет удалена.