From 999cc6189bf83f5591e1f0839888721a7b8ec721 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Thu, 20 Jul 2023 15:47:43 +0330 Subject: [PATCH] #398 book related entities --- RMuseum/Models/PDFLibrary/Book.cs | 31 ++++++++ .../PDFLibrary/MultiVolumePDFCollection.cs | 9 ++- RMuseum/Models/PDFLibrary/PDFBook.cs | 9 ++- RMuseum/RMuseum.xml | 79 ++++++++++++++++++- 4 files changed, 122 insertions(+), 6 deletions(-) create mode 100644 RMuseum/Models/PDFLibrary/Book.cs diff --git a/RMuseum/Models/PDFLibrary/Book.cs b/RMuseum/Models/PDFLibrary/Book.cs new file mode 100644 index 00000000..ac6a017e --- /dev/null +++ b/RMuseum/Models/PDFLibrary/Book.cs @@ -0,0 +1,31 @@ +using RMuseum.Models.Artifact; +using System.Collections.Generic; + +namespace RMuseum.Models.PDFLibrary +{ + /// + /// a book might have different PDFBook or MultiVolumePDFCollection instances + /// + public class Book + { + /// + /// Id + /// + public int Id { get; set; } + + /// + /// book name + /// + public string Name { get; set; } + + /// + /// description + /// + public string Description { get; set; } + + /// + /// Attributes + /// + public ICollection Tags { get; set; } + } +} diff --git a/RMuseum/Models/PDFLibrary/MultiVolumePDFCollection.cs b/RMuseum/Models/PDFLibrary/MultiVolumePDFCollection.cs index 7b2a7826..e46e7dff 100644 --- a/RMuseum/Models/PDFLibrary/MultiVolumePDFCollection.cs +++ b/RMuseum/Models/PDFLibrary/MultiVolumePDFCollection.cs @@ -11,9 +11,14 @@ public int Id { get; set; } /// - /// Friendly Url + /// book id /// - public string FriendlyUrl { get; set; } + public int BookId { get; set; } + + /// + /// book + /// + public Book Book { get; set; } /// /// Name diff --git a/RMuseum/Models/PDFLibrary/PDFBook.cs b/RMuseum/Models/PDFLibrary/PDFBook.cs index d8c380e7..f0cbab83 100644 --- a/RMuseum/Models/PDFLibrary/PDFBook.cs +++ b/RMuseum/Models/PDFLibrary/PDFBook.cs @@ -16,9 +16,14 @@ namespace RMuseum.Models.PDFLibrary public int Id { get; set; } /// - /// Friendly Url + /// book id /// - public string FriendlyUrl { get; set; } + public int BookId { get; set; } + + /// + /// book + /// + public Book Book { get; set; } /// /// Publish Status diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml index cf7baa71..5e25ba27 100644 --- a/RMuseum/RMuseum.xml +++ b/RMuseum/RMuseum.xml @@ -11583,6 +11583,61 @@ + + + a book might have different PDFBook or MultiVolumePDFCollection instances + + + + + Id + + + + + book name + + + + + description + + + + + Attributes + + + + + Multi Volume Book + + + + + Id + + + + + book id + + + + + book + + + + + Name + + + + + Description + + PDF Book @@ -11593,9 +11648,14 @@ Id - + - Friendly Url + book id + + + + + book @@ -11673,6 +11733,21 @@ claimed page count + + + MultiVolumePDFCollection Id + + + + + MultiVolumePDFCollection + + + + + Volume Order + + Date/Time