optimistic or pessimistic locking

2011-02-19 Thread raghavsri
Hi, Please anybody can tell me ,by default what kind of locking mechanism is provided by the castle active record,when save or create operation is performed in a transaction scope. Thanks in advance Regards -- You received this message because you are subscribed to the Google Groups Castle

Re: optimistic or pessimistic locking

2011-02-19 Thread Markus Zywitza
Depends on driver and database. TransactionScope uses IsolationLevel.Unspecified, so there is no locking at all unless you have version properties on your AR classes. As a work-around, you cold specify default IsolationLevel to Serializable in TransactionScope.cs line 99, so the driver uses