| DeleteOptionsOptimisticLockControl Property |
Linkar Framework .NET (Core and Framework)
In the execution of the Delete function, before updating the record, checks out if the record 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 deletion (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 deleted record is executed.
But if they are not equal, it means that the record has been modified by other user and the record will not be deteted.
The record will have to be read, and delete again.
See Also