Click or drag to resize

SessionBase.Persist Method (Placement, IOptimizedPersistable, Schema, UInt16, Boolean, Queue<IOptimizedPersistable>)

Persists an object

Namespace:  VelocityDb.Session
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
public virtual ulong Persist(
	Placement place,
	IOptimizedPersistable pObj,
	Schema schema,
	ushort slotLimitPerPage = 0,
	bool inFlush = false,
	Queue<IOptimizedPersistable> toPersist = null
)

Parameters

place
Type: VelocityDb.Placement
Placement object determining where to persist the object
pObj
Type: VelocityDb.IOptimizedPersistable
The object to persist
schema
Type: VelocityDb.TypeInfo.Schema
The active session schema
slotLimitPerPage (Optional)
Type: System.UInt16
Override of how many slots per page to permit
inFlush (Optional)
Type: System.Boolean
Set to true to disallow page flushes as a side affect
toPersist (Optional)
Type: System.Collections.Generic.Queue<IOptimizedPersistable>
A list of objects waiting to be persisted

Return Value

Type: UInt64
Id of persisted object
See Also