protected virtual void SetupDb4o() { Db4o.Configure().ExceptionsOnNotStorable((bool)Model.ExtendedProperties[Db4oFacility.ExceptionsOnNotStorableKey]); if (Model.ExtendedProperties[Db4oFacility.CallConstructorsKey] != null) { Db4o.Configure().CallConstructors((bool)Model.ExtendedProperties[Db4oFacility.CallConstructorsKey]); } if (Model.ExtendedProperties.Contains(Db4oFacility.ActivationDepth)) { Db4o.Configure().ActivationDepth((int)Model.ExtendedProperties[Db4oFacility.ActivationDepth]); } if (Model.ExtendedProperties.Contains(Db4oFacility.UpdateDepth)) { Db4o.Configure().UpdateDepth((int)Model.ExtendedProperties[Db4oFacility.UpdateDepth]); } SetupTranslators(); }
protected virtual void SetupTranslators() { //TODO: Remove it when db4o's team fix it. Db4o.Configure().ObjectClass(typeof(CompareInfo)).Translate(new TSerializable()); }