Associate the collection with the given session.

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

Syntax

C#
public virtual bool SetCurrentSession(
	ISessionImplementor session
)
Visual Basic
Public Overridable Function SetCurrentSession ( _
	session As ISessionImplementor _
) As Boolean
Visual C++
public:
virtual bool SetCurrentSession(
	ISessionImplementor^ session
)

Parameters

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

[Missing <param name="session"/> documentation for "M:NHibernate.Collection.AbstractPersistentCollection.SetCurrentSession(NHibernate.Engine.ISessionImplementor)"]

Return Value

false if the collection was already associated with the session

Implements

IPersistentCollection..::..SetCurrentSession(ISessionImplementor)

See Also