Exemplo n.º 1
0
        private static DataSet LoadDataSet(IEnumerable <FileInfo> Files, string DataSetName)
        {
            DataSet set = SETables.CreateDataSet(DataSetName);

            _log.Info("Filling:");

            foreach (FileInfo file in Files)
            {
                string tableName = Path.GetFileNameWithoutExtension(file.Name);

                _log.Info($"\t{tableName}");

                Filler    filler = Filler.GetFillerByTableName(tableName);
                DataTable table  = set.Tables[tableName];
                filler.FillFromXml(file.FullName, table);
            }

            return(set);
        }