Type Parameters
- T
An unordered, unkeyed collection that can contain the same element
multiple times. The .NET collections API, has no Bag.
The ICollection<(Of T>) interface closely resembles bag semantics,
however NHibernate for .NET 1.1 used IList so
IList<(Of T>) is used to ensure the easiest transition
to generics.
The following tables list the members exposed by the PersistentGenericBag<(Of T>) generic type.
Public Methods
Protected Methods
| Name | Description | |
|---|---|---|
| Initialize |
Initialize the collection, if possible, wrapping any exceptions
in a runtime exception
(Inherited from AbstractPersistentCollection.) | |
| MakeDirtyIfTrue | (Inherited from AbstractPersistentCollection.) | |
| QueueAdd |
Queue an addition if the peristent collection supports it
(Inherited from AbstractPersistentCollection.) | |
| QueueAddAll |
Queue additions
(Inherited from AbstractPersistentCollection.) | |
| SetInitialized |
Mark the collection as initialized.
(Inherited from AbstractPersistentCollection.) | |
| Snapshot | (Overrides .Snapshot(ICollectionPersister).) | |
| Write |
Called by any writer method of the collection interface
(Inherited from AbstractPersistentCollection.) |
Public Constructors
| Name | Description | |
|---|---|---|
| PersistentGenericBag<(Of T>)New | Overloaded. |
Public Properties
| Name | Description | |
|---|---|---|
| CollectionSnapshot | (Inherited from AbstractPersistentCollection.) | |
| Count | ||
| Empty |
Is the initialized GenericBag empty?
(Overrides .Empty.) | |
| HasQueuedAdds | (Inherited from AbstractPersistentCollection.) | |
| IsDirectlyAccessible |
Gets a Boolean indicating if the underlying collection is directly
accessable through code.
(Inherited from AbstractPersistentCollection.) | |
| IsDirty | (Inherited from AbstractPersistentCollection.) | |
| Item | ||
| Owner | (Inherited from AbstractPersistentCollection.) | |
| QueuedAddsCollection | (Inherited from AbstractPersistentCollection.) | |
| WasInitialized | (Inherited from AbstractPersistentCollection.) |
Protected Properties
| Name | Description | |
|---|---|---|
| Session | (Inherited from AbstractPersistentCollection.) |