Пример #1
0
        public static string GetSeriesReport(List<Book> books)
        {
            IDocumentFormatDefinition<BookAggregatedGroup<int>> definition = StatReportDefinition<int>.GenericBookGroupReportFormat();

            return definition.Export(books
                .DenormaliseAuthors()
                .RemoveBooksWithoutSeries()
                .GroupBySeries());
        }
Пример #2
0
        public static string GetAuthorCountReport(List<Book> books)
        {
            IDocumentFormatDefinition<BookAggregatedGroup<int>> definition = StatReportDefinition<int>.GenericBookGroupReportFormat();

            return definition.Export(books.DenormaliseAuthors().GroupByAuthorBookCount());
        }