SessionBasePersist Method (Object, IOptimizedPersistable, Boolean) |
Persist an object that may or may not be a subclass of OptimizedPersistable
Namespace:
VelocityDb.Session
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax public ulong Persist(
Object obj,
IOptimizedPersistable parent,
bool inFlush = false
)
Public Function Persist (
obj As Object,
parent As IOptimizedPersistable,
Optional inFlush As Boolean = false
) As ULong
public:
unsigned long long Persist(
Object^ obj,
IOptimizedPersistable^ parent,
bool inFlush = false
)
member Persist :
obj : Object *
parent : IOptimizedPersistable *
?inFlush : bool
(* Defaults:
let _inFlush = defaultArg inFlush false
*)
-> uint64
Parameters
- obj
- Type: SystemObject
The object to persist. - parent
- Type: VelocityDbIOptimizedPersistable
A parent object of the object to persist. - inFlush (Optional)
- Type: SystemBoolean
If true, disallow page flushing
Return Value
Type:
UInt64The Id of the persisted object.
See Also