Esempio n. 1
0
        public override MusicDataTable CreateJsonData(IMusicDataTable <IMusicDataTableUnit> data)
        {
            var musicDataTable = new MusicDataTable();

            musicDataTable.Add(data);
            return(musicDataTable);
        }
        public IMusicDataTable <IMusicDataTableUnit> Read(IXLWorksheet source)
        {
            var musicDataTable = new MusicDataTable();

            var header = new Header().GetColumnsMappedByParameter();
            var rows   = source.Rows().Skip(1);

            foreach (var row in rows)
            {
                musicDataTable.Add(CreateMusicData(header, row));
            }

            return(musicDataTable);
        }