Exemplo n.º 1
0
 public DataBase(SerializationInfo info, StreamingContext ctxt)
 {
     Name = info.GetString("Name");
     inner_dc_dict = (Dictionary<string, DataContainer>)
         (info.GetValue("inner_dc_dict", typeof(Dictionary<string, DataContainer>)));
     MemStorage = new DwarfDB.Stack.DataStorage(this);
 }
Exemplo n.º 2
0
        protected DataBase(string db_name, ChunkManager.ChunkManager _cm, bool is_new_db)
        {
            local_am = new DSAccessManager(this);
            MemStorage = new DwarfDB.Stack.DataStorage(this);

            if (_cm != null)
                chunk_manager = _cm;
            else {
                chunk_manager = new DwarfDB.ChunkManager.ChunkManager();
            }
            Name = db_name;
            chunk_manager.Load(Name, is_new_db);
        }