ServerClientSessionSharedPersist 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 override ulong Persist(
Placement place,
IOptimizedPersistable pObj,
Schema schema,
ushort slotLimitPerPage = 0,
bool inFlush = false,
Queue<IOptimizedPersistable> toPersist = null
)
Public Overrides Function Persist (
place As Placement,
pObj As IOptimizedPersistable,
schema As Schema,
Optional slotLimitPerPage As UShort = 0,
Optional inFlush As Boolean = false,
Optional toPersist As Queue(Of IOptimizedPersistable) = Nothing
) As ULong
public:
virtual unsigned long long Persist(
Placement^ place,
IOptimizedPersistable^ pObj,
Schema^ schema,
unsigned short slotLimitPerPage = 0,
bool inFlush = false,
Queue<IOptimizedPersistable^>^ toPersist = nullptr
) override
abstract Persist :
place : Placement *
pObj : IOptimizedPersistable *
schema : Schema *
?slotLimitPerPage : uint16 *
?inFlush : bool *
?toPersist : Queue<IOptimizedPersistable>
(* Defaults:
let _slotLimitPerPage = defaultArg slotLimitPerPage 0
let _inFlush = defaultArg inFlush false
let _toPersist = defaultArg toPersist null
*)
-> uint64
override Persist :
place : Placement *
pObj : IOptimizedPersistable *
schema : Schema *
?slotLimitPerPage : uint16 *
?inFlush : bool *
?toPersist : Queue<IOptimizedPersistable>
(* Defaults:
let _slotLimitPerPage = defaultArg slotLimitPerPage 0
let _inFlush = defaultArg inFlush false
let _toPersist = defaultArg toPersist null
*)
-> uint64
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:
UInt64Id of persisted object
See Also