Update the persistent state associated with the given identifier.
Namespace:
NHibernateAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Sub Update ( _ obj As Object, _ id As Object _ ) |
C# |
---|
void Update( Object obj, Object id ) |
Visual C++ |
---|
void Update( Object^ obj, Object^ id ) |
JavaScript |
---|
function update(obj, id); |
Parameters
- obj
- Type: System..::.Object
A transient instance containing updated state
- id
- Type: System..::.Object
Identifier of persistent instance
Remarks
An exception is thrown if there is a persistent instance with the same identifier
in the current session.