DomainObjects Class Library

TransactableObject.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.

public 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.

Implements

ITransactable.

See Also

TransactableObject Class | DomainObjects.Facade.Domain Namespace