Get the key value from the owning entity instance, usually the identifier, but might be some other unique key, in the case of property-ref

Namespace:  NHibernate.Type
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Function GetKeyOfOwner ( _
	owner As Object, _
	session As ISessionImplementor _
) As Object
C#
public Object GetKeyOfOwner(
	Object owner,
	ISessionImplementor session
)
Visual C++
public:
Object^ GetKeyOfOwner(
	Object^ owner, 
	ISessionImplementor^ session
)
JavaScript
function getKeyOfOwner(owner, session);

See Also