public SerializationContext(Database db, Type parentType) { DB = db; ParentType = parentType; Cache = new StorableObjectsCache(); Stack = new Stack <IStorable> (); SaveChildren = true; Binder = new MigrationBinder(Serializer.TypesMappings, Serializer.NamespacesReplacements); }
void Init(Database db, Revision rev, StorableObjectsCache cache) { Cache = cache ?? new StorableObjectsCache(); }