Namespaces

Types

Type IUserCollectionType

Namespace NHibernate.UserTypes

Methods

Public instance methods

bool Contains(object collection, object entity)

Optional operation. Does the collection contain the entity instance?
Parameters
return bool
object collection
object entity

IEnumerable GetElements(object collection)

Return an IEnumerable over the elements of this collection - the passed collection instance may or may not be a wrapper
Parameters
return IEnumerable
object collection

object IndexOf(object collection, object entity)

Optional operation. Return the index of the entity in the collection.
Parameters
return object
object collection
object entity

object Instantiate()

Instantiate an empty instance of the "underlying" collection (not a wrapper)
Parameters
return object

IPersistentCollection Instantiate(ISessionImplementor session, ICollectionPersister persister)

Instantiate an uninitialized instance of the collection wrapper
Parameters
return IPersistentCollection
ISessionImplementor session
ICollectionPersister persister

object ReplaceElements(object original, object target, ICollectionPersister persister, object owner, IDictionary copyCache, ISessionImplementor session)

Replace the elements of a collection with the elements of another collection
Parameters
return object
object original
object target
ICollectionPersister persister
object owner
IDictionary copyCache
ISessionImplementor session

IPersistentCollection Wrap(ISessionImplementor session, object collection)

Wrap an instance of a collection
Parameters
return IPersistentCollection
ISessionImplementor session
object collection