IInstantiatingTypeHandler.

WriteInstantiation(IWriteContext, Object) Method

Summary

gets called when an object is to be written to the database.

Syntax

void WriteInstantiation(IWriteContext context, Object obj)

Remarks

gets called when an object is to be written to the database. The method must only write data necessary to re instantiate the object, usually the immutable bits of information held by the object. For value types that means their complete state. Mutable state (only allowed in reference types) must be handled during Db4objects.Db4o.Typehandlers.IReferenceTypeHandler.Activate(Db4objects.Db4o.Marshall.IReferenceActivationContext)

Parameters

Name Type Description
context IWriteContext
obj Object the object

Return Value

Type Description
void