[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)
interface for custom marshallers.
Namespace: Db4objects.Db4o.Config
Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Interface IObjectMarshaller |
C# |
---|
public interface IObjectMarshaller |
Visual C++ |
---|
public interface class IObjectMarshaller |
Remarks
interface for custom marshallers.
Custom marshallers can be used for tuning the performance to store
and read objects. Instead of letting db4o do all the marshalling
by detecting the fields on a class and by using reflection, a
custom
ObjectMarshaller
allows the
application developer to write the logic how the fields of an
object are converted to a byte[] and back.
To implement a custom marshaller, write a class that implements the methods of the ObjectMarshaller interface and register it for your persistent class:
To implement a custom marshaller, write a class that implements the methods of the ObjectMarshaller interface and register it for your persistent class:
![]() | |
---|---|
Db4o.configure().objectClass(YourClass.class).marshallWith(yourMarshaller); |