Associate the collection with the given session.

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

Syntax

Visual Basic (Declaration)
Public Function SetCurrentSession ( _
	session As ISessionImplementor _
) As Boolean
C#
public bool SetCurrentSession(
	ISessionImplementor session
)
Visual C++
public:
virtual bool SetCurrentSession(
	ISessionImplementor^ session
) sealed
JavaScript
function setCurrentSession(session);

Return Value

false if the collection was already associated with the session

Implements

IPersistentCollection..::.SetCurrentSession(ISessionImplementor)

See Also