Copy the state of the given object onto the persistent object with the same identifier. If there is no persistent instance currently associated with the session, it will be loaded. Return the persistent instance. If the given instance is unsaved or does not exist in the database, save it and return it as a newly persistent instance. Otherwise, the given instance does not become associated with the session.

Namespace: NHibernate
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
[ObsoleteAttribute("Use Merge(object) instead")]
Object SaveOrUpdateCopy(
	Object obj
)
Visual Basic
<ObsoleteAttribute("Use Merge(object) instead")> _
Function SaveOrUpdateCopy ( _
	obj As Object _
) As Object
Visual C++
[ObsoleteAttribute(L"Use Merge(object) instead")]
Object^ SaveOrUpdateCopy(
	Object^ obj
)

Parameters

obj
Type: System..::..Object
a transient instance with state to be copied

Return Value

an updated persistent instance

See Also