Click or drag to resize

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.Functions
Assembly: Linkar.Functions (in Linkar.Functions.dll) Version: 2.3.1
Syntax
public bool OptimisticLockControl { get; }

Property Value

Boolean
Remarks
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