Exemplo n.º 1
0
        public int ImportStationDictionaries(string path)
        {
            var repo = new ExcelQueryFactory {
                FileName = path
            };
            var excels = (from c in repo.Worksheet <StationDictionaryExcel>("Sheet1") select c).ToList();

            foreach (var stationDictionaryExcel in excels)
            {
                Stations.Push(stationDictionaryExcel);
            }

            return(Stations.Count);
        }