Wrap the naked collection instance in a wrapper, or instantiate a
holder. Callers MUST add the holder to the persistence context!
Namespace: NHibernate.TypeAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public abstract IPersistentCollection Wrap( ISessionImplementor session, Object collection ) |
Visual Basic |
---|
Public MustOverride Function Wrap ( _ session As ISessionImplementor, _ collection As Object _ ) As IPersistentCollection |
Visual C++ |
---|
public: virtual IPersistentCollection^ Wrap( ISessionImplementor^ session, Object^ collection ) abstract |
Parameters
- session
- Type: NHibernate.Engine..::..ISessionImplementor
The session from which the request is originating.
- collection
- Type: System..::..Object
The bare collection to be wrapped.