Return the identifier of an entity instance cached by the ISession
Namespace: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
| C# |
|---|
Object GetIdentifier( Object obj ) |
| Visual Basic |
|---|
Function GetIdentifier ( _ obj As Object _ ) As Object |
| Visual C++ |
|---|
Object^ GetIdentifier( Object^ obj ) |
Parameters
- obj
- Type: System..::..Object
a persistent instance
Return Value
the identifier
Remarks
Throws an exception if the instance is transient or associated with a different
ISession