Click or drag to resize

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
)

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: UInt64
The object id of the persistent object

Implements

IOptimizedPersistablePersist(SessionBase, IOptimizedPersistable, Boolean, Boolean)
See Also