Click or drag to resize

IOptimizedPersistablePersist Method (SessionBase, IOptimizedPersistable, Boolean, Boolean)

Persists this object.

Namespace:  VelocityDb
Assembly:  VelocityDb (in VelocityDb.dll) Version: 10.2.0.0 (10.2)
Syntax
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 PagesPerDatabase
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
See Also