DomainObjects Class Library

ITransactable.GetPrivateCopy Method 

Get a private copy of this object that is in an 'isolated' state. If this instance is already a private copy, just return this instance back to the caller. An 'isolated' state indicates that this persistable object is only accessible by a single transaction, i.e., the caller of this method, and therefore can be safely modified without other transactions or threads seeing those modifications. This ensures transaction isolation when using optimistic concurrency control with shared, cached objects.

TransactableObject GetPrivateCopy();

Return Value

If this instance is not already a private copy, returns a shallow clone of the current instance with the

IsPrivateCopy
flag set to true, else just returns this instance.

See Also

ITransactable Interface | DomainObjects.Facade.Domain Namespace