예제 #1
0
 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);
 }
예제 #2
0
 void Init(Database db, Revision rev, StorableObjectsCache cache)
 {
     Cache = cache ?? new StorableObjectsCache();
 }