public void Create(TimeSeriesDatabaseDto dto)
 {
     this.dto = dto;
     OpenCreate();
     WriteHeader();
     WriteAttributes();
     this.archiveTemplateFixupTable.Create(CreateArchiveTemplateFixupDto(dto.ArchiveTemplates));
     this.dataSourceFixupTable.Create(CreateDataSourceFixupDto(dto.DataSources));
     this.dto = null;
 }
        public TimeSeriesDatabaseDto Read()
        {
            TimeSeriesDatabaseDto dto = this.dto = new TimeSeriesDatabaseDto();

            this.dto.Dao = this;
            ReadHeader();
            ReadAttributes();
            this.archiveTemplateFixupTable.Read();
            this.dataSourceFixupTable.Read();
            ReadArchiveTemplates();
            ReadDataSources();
            this.dto = null;
            return(dto);
        }