示例#1
0
        public void PosHistorieAusgebenTable()
        {
            var dbf    = new Dbf(Path.Combine(testDir, "poshistorie.dbf"));
            var reader = new DbfReader(dbf);
            var header = dbf.GetHeader();

            using (var sw = new StreamWriter(Path.Combine(testDir, $"Fact_{nameof(PosHistorieAusgebenTable)}.md")))
            {
                //reader.ReadRows((i, v) => i > (header.CalculatedRecordCount - 10), true).Count();
                //OutputHelper.MarkdownTable(header.Fields, reader.ReadRows(true).Take(50), h => h, sw.WriteLine);
                OutputHelper.MarkdownTable(
                    new[] { "RAW CONTENT" },
                    reader.ReadRowsRaw().Select(x => new[] { OutputHelper.ByteArrayToX2(x) }).Take(50).ToList(),
                    h => h,
                    sw.WriteLine);
            }
        }