ITransactionalEntityDeepCloneT, TManager Method |
Namespace: Ingeniux.CMS
T DeepClone<T, TManager>( T cloneFrom ) where T : new(), Object, IEntity<TManager> where TManager : ITransactionalEntity
Exception | Condition |
---|---|
ArgumentNullException | When the cloneFrom object is null |
ArgumentException | When the cloneFrom object was retrieved from a different session. |
Deep-cloning an object retains all of the original object's property values except the unique ID, creation user, creation time, last-modified user, and last-modified time.
The cloned object is re-augmented with all the session information.
Cloning a null object or an object from another session throws an error.