Associate the collection with the given session.

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

Syntax

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

Return Value

false if the collection was already associated with the session

See Also