LockingSemanticsBindings.Add Method (Type, ILockingSemantics)
Adds a locking semantics binding with the specified Type and ILockingSemantics. The binding will apply to all DataDomains.
Parameters
- type
-
The Type for which the binding should apply. Semantics bindings are also inherited by derived classes
if no explicit binding is defined for the derived class.
- semantics
-
The ILockingSemantics implementation which should be used when locking persistent objects of the type specified by type in the
DataDomain specified by dataDomain.
Possible values are OptimisticLockingSemantics.Value or PessimisticLockingSemantics.Value.
Remarks
See LockingSemanticsBindings for an example.
Requirements
Namespace: TechTalk.Genome.Locking
Assembly: TechTalk.Genome (in TechTalk.Genome.dll)
Version: 4.2.4.4
Editions: Professional, Evaluation, Express
See Also
LockingSemanticsBindings Class | TechTalk.Genome.Locking Namespace | LockingSemanticsBindings.Add Overload List