From 031278672114ad5ee29d25e8128956977c0e2ea9 Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Mon, 14 Feb 2022 13:44:54 -0500 Subject: [PATCH] Add description to exports #197 --- AppScaffolding/AppScaffolding.csproj | 2 +- ApplicationServices/LibraryExporter.cs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/AppScaffolding/AppScaffolding.csproj b/AppScaffolding/AppScaffolding.csproj index fe015946..93d17d9a 100644 --- a/AppScaffolding/AppScaffolding.csproj +++ b/AppScaffolding/AppScaffolding.csproj @@ -3,7 +3,7 @@ net6.0 - 6.6.6.1 + 6.6.7.1 diff --git a/ApplicationServices/LibraryExporter.cs b/ApplicationServices/LibraryExporter.cs index 7e93dfe1..4508d7ed 100644 --- a/ApplicationServices/LibraryExporter.cs +++ b/ApplicationServices/LibraryExporter.cs @@ -44,6 +44,9 @@ namespace ApplicationServices [Name("Length In Minutes")] public int LengthInMinutes { get; set; } + [Name("Description")] + public string Description { get; set; } + [Name("Publisher")] public string Publisher { get; set; } @@ -111,6 +114,7 @@ namespace ApplicationServices AuthorNames = a.Book.AuthorNames, NarratorNames = a.Book.NarratorNames, LengthInMinutes = a.Book.LengthInMinutes, + Description = a.Book.Description, Publisher = a.Book.Publisher, HasPdf = a.Book.HasPdf, SeriesNames = a.Book.SeriesNames, @@ -180,6 +184,7 @@ namespace ApplicationServices nameof (ExportDto.AuthorNames), nameof (ExportDto.NarratorNames), nameof (ExportDto.LengthInMinutes), + nameof (ExportDto.Description), nameof (ExportDto.Publisher), nameof (ExportDto.HasPdf), nameof (ExportDto.SeriesNames), @@ -233,6 +238,7 @@ namespace ApplicationServices row.CreateCell(col++).SetCellValue(dto.AuthorNames); row.CreateCell(col++).SetCellValue(dto.NarratorNames); row.CreateCell(col++).SetCellValue(dto.LengthInMinutes); + row.CreateCell(col++).SetCellValue(dto.Description); row.CreateCell(col++).SetCellValue(dto.Publisher); row.CreateCell(col++).SetCellValue(dto.HasPdf); row.CreateCell(col++).SetCellValue(dto.SeriesNames);