Given a collection of entity instances that used to belong to the collection, and a collection of instances that currently belong, return a collection of orphans

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

Syntax

C#
protected virtual ICollection GetOrphans(
	ICollection oldElements,
	ICollection currentElements,
	string entityName,
	ISessionImplementor session
)
Visual Basic
Protected Overridable Function GetOrphans ( _
	oldElements As ICollection, _
	currentElements As ICollection, _
	entityName As String, _
	session As ISessionImplementor _
) As ICollection
Visual C++
protected:
virtual ICollection^ GetOrphans(
	ICollection^ oldElements, 
	ICollection^ currentElements, 
	String^ entityName, 
	ISessionImplementor^ session
)

Parameters

oldElements
Type: System.Collections..::..ICollection

[Missing <param name="oldElements"/> documentation for "M:NHibernate.Collection.AbstractPersistentCollection.GetOrphans(System.Collections.ICollection,System.Collections.ICollection,System.String,NHibernate.Engine.ISessionImplementor)"]

currentElements
Type: System.Collections..::..ICollection

[Missing <param name="currentElements"/> documentation for "M:NHibernate.Collection.AbstractPersistentCollection.GetOrphans(System.Collections.ICollection,System.Collections.ICollection,System.String,NHibernate.Engine.ISessionImplementor)"]

entityName
Type: System..::..String

[Missing <param name="entityName"/> documentation for "M:NHibernate.Collection.AbstractPersistentCollection.GetOrphans(System.Collections.ICollection,System.Collections.ICollection,System.String,NHibernate.Engine.ISessionImplementor)"]

session
Type: NHibernate.Engine..::..ISessionImplementor

[Missing <param name="session"/> documentation for "M:NHibernate.Collection.AbstractPersistentCollection.GetOrphans(System.Collections.ICollection,System.Collections.ICollection,System.String,NHibernate.Engine.ISessionImplementor)"]

Return Value

[Missing <returns> documentation for "M:NHibernate.Collection.AbstractPersistentCollection.GetOrphans(System.Collections.ICollection,System.Collections.ICollection,System.String,NHibernate.Engine.ISessionImplementor)"]

See Also