Click or drag to resize

WeakReferenceListBaseTPersist Method

Persists this object. Override in your subclasses when you want fields of your class to be persisted in some special way.

Namespace:  VelocityDb.Collection
Assembly:  VelocityDb (in VelocityDb.dll) Version: (11.1)
public override ulong Persist(
	Placement place,
	SessionBase session,
	bool persistRefs = true,
	bool disableFlush = false,
	Queue<IOptimizedPersistable> toPersist = null


Type: VelocityDbPlacement
The placement rules to follow when persisting this object
Type: VelocityDb.SessionSessionBase
The session managing this object
persistRefs (Optional)
Type: SystemBoolean
If true, objects referenced from this object will also be persisted
disableFlush (Optional)
Type: SystemBoolean
If true, disables possible flushing of updated pages while persisting this object; otherwise page flushing may occur
toPersist (Optional)
Type: System.Collections.GenericQueueIOptimizedPersistable
A queue of objects remaining to be persisted. Pass as a parameter to session.Persist

Return Value

Type: UInt64
The object id of this persistent object


IOptimizedPersistablePersist(Placement, SessionBase, Boolean, Boolean, QueueIOptimizedPersistable)
See Also