The PersistentBag type exposes the following members.

Methods

  NameDescription
Add
AfterInitialize (Inherited from AbstractPersistentCollection.)
AfterRowInsert
Called after inserting a row, to fetch the natively generated id
(Inherited from AbstractPersistentCollection.)
BeforeInitialize (Overrides AbstractPersistentCollection..::.BeforeInitialize(ICollectionPersister).)
BeginRead
Called just before reading any rows from the IDataReader
(Inherited from AbstractPersistentCollection.)
Clear
ClearDirty (Inherited from AbstractPersistentCollection.)
Contains
CopyTo
DelayedAddAll (Overrides AbstractPersistentCollection..::.DelayedAddAll(ICollection, ICollectionPersister).)
Dirty (Inherited from AbstractPersistentCollection.)
Disassemble (Overrides AbstractPersistentCollection..::.Disassemble(ICollectionPersister).)
EndRead
Called after reading all rows from the IDataReader
(Inherited from AbstractPersistentCollection.)
Entries (Overrides AbstractPersistentCollection..::.Entries()()().)
EntryExists (Overrides AbstractPersistentCollection..::.EntryExists(Object, Int32).)
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
EqualsSnapshot (Overrides AbstractPersistentCollection..::.EqualsSnapshot(IType).)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
ForceInitialization
To be called internally by the session, forcing immediate initalization.
(Inherited from AbstractPersistentCollection.)
GetDeletes (Overrides AbstractPersistentCollection..::.GetDeletes(IType, Boolean).)
GetElement (Overrides AbstractPersistentCollection..::.GetElement(Object).)
GetEnumerator
GetHashCode
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetIdentifier (Inherited from AbstractPersistentCollection.)
GetIndex (Overrides AbstractPersistentCollection..::.GetIndex(Object, Int32).)
GetOrphans (Overrides AbstractPersistentCollection..::.GetOrphans(Object, Type).)
GetSnapshotOverloaded.
GetSnapshotElement (Overrides AbstractPersistentCollection..::.GetSnapshotElement(Object, Int32).)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
GetValue
Return the user-visible collection (or array) instance
(Inherited from AbstractPersistentCollection.)
IndexOf
Initialize
Initialize the collection, if possible, wrapping any exceptions in a runtime exception
(Inherited from AbstractPersistentCollection.)
InitializeFromCache
Initializes this PersistentBag from the cached values.
(Overrides AbstractPersistentCollection..::.InitializeFromCache(ICollectionPersister, Object, Object).)
Insert
IsSnapshotEmpty (Inherited from AbstractPersistentCollection.)
IsWrapper (Overrides AbstractPersistentCollection..::.IsWrapper(Object).)
MakeDirtyIfTrue (Inherited from AbstractPersistentCollection.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
NeedsInserting (Overrides AbstractPersistentCollection..::.NeedsInserting(Object, Int32, IType).)
NeedsRecreate
Gets a Boolean indicating if this PersistentBag needs to be recreated in the database.
(Overrides AbstractPersistentCollection..::.NeedsRecreate(ICollectionPersister).)
NeedsUpdating (Overrides AbstractPersistentCollection..::.NeedsUpdating(Object, Int32, IType).)
PostAction
Clears out any Queued Additions.
(Inherited from AbstractPersistentCollection.)
PreInsert
Called before inserting rows, to ensure that any surrogate keys are fully generated
(Inherited from AbstractPersistentCollection.)
QueueAdd
Queue an addition if the peristent collection supports it
(Inherited from AbstractPersistentCollection.)
QueueAddAll
Queue additions
(Inherited from AbstractPersistentCollection.)
Read
Called by any read-only method of the collection interface
(Inherited from AbstractPersistentCollection.)
ReadFrom (Overrides AbstractPersistentCollection..::.ReadFrom(IDataReader, ICollectionPersister, ICollectionAliases, Object).)
Remove
RemoveAt
SetCurrentSession
Associate the collection with the given session.
(Inherited from AbstractPersistentCollection.)
SetInitialized
Mark the collection as initialized.
(Inherited from AbstractPersistentCollection.)
Snapshot (Overrides AbstractPersistentCollection..::.Snapshot(ICollectionPersister).)
ToString
Returns a String that represents the current Object.
(Inherited from Object.)
UnsetSession
Disassociate this collection from the given session.
(Inherited from AbstractPersistentCollection.)
Write
Called by any writer method of the collection interface
(Inherited from AbstractPersistentCollection.)

See Also