Get all "orphaned" elements.

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

Syntax

Visual Basic (Declaration)
Public Overrides Function GetOrphans ( _
	snapshot As Object, _
	entityName As Type _
) As ICollection
C#
public override ICollection GetOrphans(
	Object snapshot,
	Type entityName
)
Visual C++
public:
virtual ICollection^ GetOrphans(
	Object^ snapshot, 
	Type^ entityName
) override
JavaScript
function getOrphans(snapshot, entityName);

Parameters

snapshot
Type: System..::.Object
The snapshot of the collection.
entityName
Type: System..::.Type
The type of the entities the collection is supposed to contain.

Return Value

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

Implements

IPersistentCollection..::.GetOrphans(Object, Type)

See Also