Instantiate an uninitialized collection wrapper or holder. Callers MUST add the holder to the persistence context!

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

Syntax

C#
public abstract IPersistentCollection Instantiate(
	ISessionImplementor session,
	ICollectionPersister persister,
	Object key
)
Visual Basic
Public MustOverride Function Instantiate ( _
	session As ISessionImplementor, _
	persister As ICollectionPersister, _
	key As Object _
) As IPersistentCollection
Visual C++
public:
virtual IPersistentCollection^ Instantiate(
	ISessionImplementor^ session, 
	ICollectionPersister^ persister, 
	Object^ key
) abstract

Parameters

session
Type: NHibernate.Engine..::..ISessionImplementor
The session from which the request is originating.
persister
Type: NHibernate.Persister.Collection..::..ICollectionPersister
The underlying collection persister (metadata)
key
Type: System..::..Object
The owner key.

Return Value

The instantiated collection.

See Also