lock a DB access

lock a DB access

  

Is it possible to lock DB accesses whenever a new entity is being created?

I need this because I have a screen with a button that, when pressed, creates a new entity in the DB. However, it should only work while there isn't anything else being created in the DB.

Hi Ricardo,

You can create another Entity call it DbLock (for instance) and a dummy record ... just for locking purposes and everytime you create need to create a new record of your entity ... first you do a get of the DbLock dummy record. Got it?