Implements "bag" semantics more efficiently than a regular PersistentBag
by adding a synthetic identifier column to the table.
Namespace: NHibernate.CollectionAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
[SerializableAttribute] public class PersistentIdentifierBag : AbstractPersistentCollection, IList, ICollection, IEnumerable |
Visual Basic |
---|
<SerializableAttribute> _ Public Class PersistentIdentifierBag _ Inherits AbstractPersistentCollection _ Implements IList, ICollection, IEnumerable |
Visual C++ |
---|
[SerializableAttribute] public ref class PersistentIdentifierBag : public AbstractPersistentCollection, IList, ICollection, IEnumerable |
Remarks
The identifier is unique for all rows in the table, allowing very efficient updates and deletes. The value of the identifier is never exposed to the application.
PersistentIdentifierBags may not be used for a many-to-one association. Furthermore, there is no reason to use inverse="true".
Inheritance Hierarchy
System..::..Object
NHibernate.Collection..::..AbstractPersistentCollection
NHibernate.Collection..::..PersistentIdentifierBag
NHibernate.Collection.Generic..::..PersistentIdentifierBag<(Of <(<'T>)>)>
NHibernate.Collection..::..AbstractPersistentCollection
NHibernate.Collection..::..PersistentIdentifierBag
NHibernate.Collection.Generic..::..PersistentIdentifierBag<(Of <(<'T>)>)>