TechTalk Genome v4.2

OptimisticLockArgs.Version Property

Gets the reference version to use as client version when putting an optimistic lock on an object.

public IOptimisticLockVersion Version {get;}

Property Value

The reference version to use as client version when putting an optimistic lock on an object.

Remarks

When Context.Lock or Context.TryLock is called with an instance of OptimisticLockArgs, the value of the Version will be used as the client version instead of retreiving the server version of the object at the moment of locking.

Use OptimisticLockingSemantics.GetClientVersion Overload List to retreive a version that can be used as a reference version in a later call to Context.Lock or Context.TryLock .

Requirements

Namespace: TechTalk.Genome.Locking

Assembly: TechTalk.Genome (in TechTalk.Genome.dll)

Version: 4.2.4.4

Editions: Professional, Evaluation, Express

See Also

OptimisticLockArgs Class | TechTalk.Genome.Locking Namespace