Return the identifier of an entity instance cached by the ISession
Namespace:
NHibernateAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Function GetIdentifier ( _ obj As Object _ ) As Object |
C# |
---|
Object GetIdentifier( Object obj ) |
Visual C++ |
---|
Object^ GetIdentifier( Object^ obj ) |
JavaScript |
---|
function getIdentifier(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