Gets or sets a value which controls the persistent object’s locking during a session.
A LockingOption enumeration value which controls the persistent object’s locking during a session.
To ensure proper execution in multi-session applications, a persistent object’s state along with its recent data is protected using LockingOption.Optimistic locking. An object is unavailable to other sessions while its data is being updated. Attempting to update an object that has already been changed results in a concurrency violation. With a “last in wins” rule (see LockingOption.None option), no check of the original data is made and the persistent object is simply overwritten by update.