You are here: Configuration > Class Specific Configuration > Set a Translator

Set a Translator

You can specify a special translator for this type. A translator is a special way to add you're custom serialization for a type. See "Translators"

IEmbeddedConfiguration configuration = Db4oEmbedded.NewConfiguration();
configuration.Common.ObjectClass(typeof (Person)).Translate(new TSerializable());
ObjectConfigurationExamples.cs: Use a translator for this type
Dim configuration As IEmbeddedConfiguration = Db4oEmbedded.NewConfiguration()
configuration.Common.ObjectClass(GetType(Person)).Translate(New TSerializable())
ObjectConfigurationExamples.vb: Use a translator for this type