Get the ID for the entity that owned this persistent collection when it was loaded

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

Syntax

C#
public virtual Object GetLoadedCollectionOwnerIdOrNull(
	IPersistentCollection collection
)
Visual Basic
Public Overridable Function GetLoadedCollectionOwnerIdOrNull ( _
	collection As IPersistentCollection _
) As Object
Visual C++
public:
virtual Object^ GetLoadedCollectionOwnerIdOrNull(
	IPersistentCollection^ collection
)

Parameters

collection
Type: NHibernate.Collection..::..IPersistentCollection
The persistent collection

Return Value

the owner ID if available from the collection's loaded key; otherwise, returns null

Implements

IPersistenceContext..::..GetLoadedCollectionOwnerIdOrNull(IPersistentCollection)

See Also