Get the id value for an object that is actually associated with the session. This is a bit stricter than GetEntityIdentifierIfNotUnsaved().

Namespace: NHibernate.Impl
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public override Object GetContextEntityIdentifier(
	Object obj
)
Visual Basic
Public Overrides Function GetContextEntityIdentifier ( _
	obj As Object _
) As Object
Visual C++
public:
virtual Object^ GetContextEntityIdentifier(
	Object^ obj
) override

Parameters

obj
Type: System..::..Object

[Missing <param name="obj"/> documentation for "M:NHibernate.Impl.SessionImpl.GetContextEntityIdentifier(System.Object)"]

Return Value

[Missing <returns> documentation for "M:NHibernate.Impl.SessionImpl.GetContextEntityIdentifier(System.Object)"]

Implements

ISessionImplementor..::..GetContextEntityIdentifier(Object)
ISessionImplementor..::..GetContextEntityIdentifier(Object)

See Also