Get all "orphaned" elements

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

Syntax

Visual Basic (Declaration)
Function GetOrphans ( _
	snapshot As Object, _
	entityName As Type _
) As ICollection
C#
ICollection GetOrphans(
	Object snapshot,
	Type entityName
)
Visual C++
ICollection^ GetOrphans(
	Object^ snapshot, 
	Type^ entityName
)
JavaScript
function getOrphans(snapshot, entityName);

Parameters

snapshot
Type: System..::.Object
The snapshot of the collection.
entityName
Type: System..::.Type
The persistent class whose objects the collection is expected to contain.

Return Value

An ICollection that contains all of the elements that have been orphaned.

See Also