howto - lock tables

Posts   
 
    
androcles
User
Posts: 2
Joined: 21-Dec-2005
# Posted on: 21-Dec-2005 16:32:12   

hello, i am rewriting a system using .NET 2005 & MySql. the old system needed to handle concurrency, and we did it by executing "LOCK TABLES ..." and "UNLOCK TABLES" statements directly onto the data adapters. this time we chose to use llbl gen for persistance, but i need to execute LOCK tables and unlock tables statements for some operations, but i don't know how to do this. thanks for your cooperation.

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 22-Dec-2005 02:17:59   

As long as you are using MySQL 4.x or later then you can use transactions which will do exactly what you need. There is documentation for how to use transactions with LLBLGen in the included manual.