| UpdateOptionsOptimisticLockControl Property |
Linkar Framework .NET (Core and Framework)
Checks out if the file has not been modified by other user.
Namespace: Linkar.FunctionsAssembly: Linkar.Functions (in Linkar.Functions.dll) Version: 2.3.1
Syntax public bool OptimisticLockControl { get; }
Public ReadOnly Property OptimisticLockControl As Boolean
Get
public:
property bool OptimisticLockControl {
bool get ();
}
member OptimisticLockControl : bool with get
Property Value
BooleanRemarks
If the OptimisticLockControl property is set to true, a copy of the record must be provided before the modification (originalRecords argument)
to use the Optimistic Lock technique. This copy can be obtained from a previous Read operation. The database, before executing the modification,
reads the record and compares it with the copy in originalRecords, if they are equal the modified record is executed.
But if they are not equal, it means that the record has been modified by other user and its modification will not be saved.
The record will have to be read, modified and saved again.
See Also