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

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

Syntax

C#
void Update(
	Object obj
)
Visual Basic
Sub Update ( _
	obj As Object _
)
Visual C++
void Update(
	Object^ 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