Data.Win.ADODB.TCustomADODataSet.LockType
Delphi
property LockType: TADOLockType read GetLockType write SetLockType default ltOptimistic;
C++
__property TADOLockType LockType = {read=GetLockType, write=SetLockType, default=3};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Data.Win.ADODB.pas Data.Win.ADODB.hpp |
Data.Win.ADODB | TCustomADODataSet |
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.