Wraps an exist IList in a NHibernate PersistentList.
Namespace:
NHibernate.TypeAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Overrides Function Wrap ( _ session As ISessionImplementor, _ collection As Object _ ) As IPersistentCollection |
C# |
---|
public override IPersistentCollection Wrap( ISessionImplementor session, Object collection ) |
Visual C++ |
---|
public: virtual IPersistentCollection^ Wrap( ISessionImplementor^ session, Object^ collection ) override |
JavaScript |
---|
function wrap(session, collection); |
Parameters
- session
- Type: NHibernate.Engine..::.ISessionImplementor
The ISessionImplementor for the collection to be a part of.
- collection
- Type: System..::.Object
The unwrapped IList.