Update the persistent instance with the identifier of the given transient instance.

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

Syntax

Visual Basic (Declaration)
Sub Update ( _
	obj As Object _
)
C#
void Update(
	Object obj
)
Visual C++
void Update(
	Object^ obj
)
JavaScript
function update(obj);

Parameters

obj
Type: System..::.Object
A transient instance containing updated state

Remarks

If there is a persistent instance with the same identifier, an exception is thrown. If the given transient instance has a nullNothingnullptra null reference (Nothing in Visual Basic) identifier, an exception will be thrown.

See Also