Data.Win.ADODB.TCustomADODataSet.LockType
[–] Properties | |
---|---|
Type: property | |
Visibility: published | |
Source: Data.Win.ADODB.pas Data.Win.ADODB.hpp
| |
Unit: Data.Win.ADODB | |
Parent: TCustomADODataSet |
Delphi
property LockType: TADOLockType read GetLockType write SetLockType default ltOptimistic;
C++
__property TADOLockType LockType = {read=GetLockType, write=SetLockType, default=3};
Description
Specifies the lock type to use when opening a dataset.
Use LockType to specify the lock type to use when opening a dataset. LockType determines whether the row locking scheme for a recordset will be pessimistic, optimistic, or read-only. To be effective, LockType must be set prior to activating the ADO dataset component.
The default value of LockType is ltOptimistic.
Use the LockType ltBatchOptimistic to open a dataset in batch update mode.