Click or drag to resize

UpdateOptionsOptimisticLockControl Property

Linkar Framework for .NET and Core


Checks out if the file 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 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