Click or drag to resize

SessionBasePersist Method (Placement, IOptimizedPersistable, Schema, UInt16, Boolean, QueueIOptimizedPersistable)

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: VelocityDbPlacement
Placement object determining where to persist the object
pObj
Type: VelocityDbIOptimizedPersistable
The object to persist
schema
Type: VelocityDb.TypeInfoSchema
The active session schema
slotLimitPerPage (Optional)
Type: SystemUInt16
Override of how many slots per page to permit
inFlush (Optional)
Type: SystemBoolean
Set to true to disallow page flushes as a side affect
toPersist (Optional)
Type: System.Collections.GenericQueueIOptimizedPersistable
A list of objects waiting to be persisted

Return Value

Type: UInt64
Id of persisted object
See Also