SortedMapKey, ValuePersist 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.0.0 (11.1)
Syntax public override ulong Persist(
Placement place,
SessionBase session,
bool persistRefs = true,
bool disableFlush = false,
Queue<IOptimizedPersistable> toPersist = null
)
Public Overrides Function Persist (
place As Placement,
session As SessionBase,
Optional persistRefs As Boolean = true,
Optional disableFlush As Boolean = false,
Optional toPersist As Queue(Of IOptimizedPersistable) = Nothing
) As ULong
public:
virtual unsigned long long Persist(
Placement^ place,
SessionBase^ session,
bool persistRefs = true,
bool disableFlush = false,
Queue<IOptimizedPersistable^>^ toPersist = nullptr
) override
abstract Persist :
place : Placement *
session : SessionBase *
?persistRefs : bool *
?disableFlush : bool *
?toPersist : Queue<IOptimizedPersistable>
(* Defaults:
let _persistRefs = defaultArg persistRefs true
let _disableFlush = defaultArg disableFlush false
let _toPersist = defaultArg toPersist null
*)
-> uint64
override Persist :
place : Placement *
session : SessionBase *
?persistRefs : bool *
?disableFlush : bool *
?toPersist : Queue<IOptimizedPersistable>
(* Defaults:
let _persistRefs = defaultArg persistRefs true
let _disableFlush = defaultArg disableFlush false
let _toPersist = defaultArg toPersist null
*)
-> uint64
Parameters
- place
- Type: VelocityDbPlacement
The placement rules to follow when persisting this object - session
- 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:
UInt64The object id of this persistent object
Implements
IOptimizedPersistablePersist(Placement, SessionBase, Boolean, Boolean, QueueIOptimizedPersistable)See Also