Пример #1
0
        public DataTable GetResult()
        {
            var paths = Directory.EnumerateFiles(this._path).OrderBy(e => e);

            TableConnector connector = null;

            foreach (string filePath in paths)
            {
                FileOfStatements file = new FileOfStatements(filePath);

                if (connector == null)
                {
                    connector = TableConnector.NewJoin(() => file.QueryResult());
                }
                else
                {
                    file      = new RecountByGroup(file);
                    connector = connector.LeftJoin(() => file.QueryResult());
                }
            }

            return(connector.GenerateTable());
        }
 public RecountByGroup(FileOfStatements file)
     : base(file.FilePath)
 {
     this._file = file;
 }