Update the persistent state associated with the given identifier.
Namespace: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
void Update( Object obj, Object id ) |
Visual Basic |
---|
Sub Update ( _ obj As Object, _ id As Object _ ) |
Visual C++ |
---|
void Update( Object^ obj, Object^ 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.