OptimizedPersistablePersist Method (SessionBase, IOptimizedPersistable, Boolean, Boolean) |
Persists this object.
Namespace:
VelocityDb
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax public virtual ulong Persist(
SessionBase session,
IOptimizedPersistable placeHint,
bool persistRefs = true,
bool disableFlush = false
)
Public Overridable Function Persist (
session As SessionBase,
placeHint As IOptimizedPersistable,
Optional persistRefs As Boolean = true,
Optional disableFlush As Boolean = false
) As ULong
public:
virtual unsigned long long Persist(
SessionBase^ session,
IOptimizedPersistable^ placeHint,
bool persistRefs = true,
bool disableFlush = false
)
abstract Persist :
session : SessionBase *
placeHint : IOptimizedPersistable *
?persistRefs : bool *
?disableFlush : bool
(* Defaults:
let _persistRefs = defaultArg persistRefs true
let _disableFlush = defaultArg disableFlush false
*)
-> uint64
override Persist :
session : SessionBase *
placeHint : IOptimizedPersistable *
?persistRefs : bool *
?disableFlush : bool
(* Defaults:
let _persistRefs = defaultArg persistRefs true
let _disableFlush = defaultArg disableFlush false
*)
-> uint64
Parameters
- session
- Type: VelocityDb.SessionSessionBase
The session managing this object - placeHint
- Type: VelocityDbIOptimizedPersistable
Use placement as specified by this object type, see PlacementDatabaseNumber, ObjectsPerPage and PagesPerDatabaseFor best performance this should be a recently created object that you want the current object to be persisted near. - persistRefs (Optional)
- Type: SystemBoolean
Persist any referenced object now or delay until flush/commit - disableFlush (Optional)
- Type: SystemBoolean
Controls possible flushing of updated pages. Set to true if you want to prevent updated pages from being flushed to disk and setting such pages to a non updated state.
Return Value
Type:
UInt64The object id of the persistent object
Implements
IOptimizedPersistablePersist(SessionBase, IOptimizedPersistable, Boolean, Boolean)See Also