Fixed a bug in ScanLibrary that caused duplicated Volumes. Implemented APIs for navigating down to Volume for webui.

This is rough code and needs to be polished and refactored.
This commit is contained in:
Joseph Milazzo 2021-01-01 14:04:31 -06:00
parent 380c3e7b3c
commit c429c50ba2
18 changed files with 709 additions and 58 deletions

View file

@ -4,8 +4,7 @@
{
public int Id { get; set; }
public string FilePath { get; set; }
//public string FileExtension { get; set; }
// Relationship Mapping
public Volume Volume { get; set; }
public int VolumeId { get; set; }

View file

@ -21,6 +21,7 @@ namespace API.Entities
/// Summary information related to the Series
/// </summary>
public string Summary { get; set; }
public string CoverImage { get; set; }
public ICollection<Volume> Volumes { get; set; }
public Library Library { get; set; }

View file

@ -7,7 +7,7 @@ namespace API.Entities
public int Id { get; set; }
public string Number { get; set; }
public ICollection<MangaFile> Files { get; set; }
// Many-to-Many relationships
public Series Series { get; set; }
public int SeriesId { get; set; }