Removed some dead code on the interfaces. Introduced UnitOfWork to simplify repo injection.
This commit is contained in:
parent
4a2296a18a
commit
825afd83a2
23 changed files with 165 additions and 204 deletions
|
|
@ -12,11 +12,7 @@ namespace API.Entities
|
|||
public DateTime Created { get; set; } = DateTime.Now;
|
||||
public DateTime LastActive { get; set; }
|
||||
public ICollection<Library> Libraries { get; set; }
|
||||
|
||||
|
||||
public ICollection<AppUserRole> UserRoles { get; set; }
|
||||
|
||||
//public ICollection<SeriesProgress> SeriesProgresses { get; set; }
|
||||
public ICollection<AppUserProgress> Progresses { get; set; }
|
||||
|
||||
[ConcurrencyCheck]
|
||||
|
|
|
|||
|
|
@ -7,10 +7,11 @@
|
|||
{
|
||||
public int Id { get; set; }
|
||||
public int PagesRead { get; set; }
|
||||
|
||||
public AppUser AppUser { get; set; }
|
||||
public int AppUserId { get; set; }
|
||||
public int VolumeId { get; set; }
|
||||
public int SeriesId { get; set; }
|
||||
|
||||
// Relationships
|
||||
public AppUser AppUser { get; set; }
|
||||
public int AppUserId { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -9,8 +9,6 @@ namespace API.Entities
|
|||
[Description("Comic")]
|
||||
Comic = 1,
|
||||
[Description("Book")]
|
||||
Book = 2,
|
||||
[Description("Raw")]
|
||||
Raw = 3
|
||||
Book = 2
|
||||
}
|
||||
}
|
||||
|
|
@ -4,9 +4,12 @@ namespace API.Entities
|
|||
public class MangaFile
|
||||
{
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// Absolute path to the archive file
|
||||
/// </summary>
|
||||
public string FilePath { get; set; }
|
||||
/// <summary>
|
||||
/// Do not expect this to be set. If this MangaFile represents a volume file, this will be null.
|
||||
/// Used to track if multiple MangaFiles (archives) represent a single Volume. If only one volume file, this will be 0.
|
||||
/// </summary>
|
||||
public int Chapter { get; set; }
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -30,10 +30,8 @@ namespace API.Entities
|
|||
/// Sum of all Volume pages
|
||||
/// </summary>
|
||||
public int Pages { get; set; }
|
||||
/// <summary>
|
||||
/// Total Volumes linked to Entity
|
||||
/// </summary>
|
||||
//public int TotalVolumes { get; set; }
|
||||
|
||||
// Relationships
|
||||
public ICollection<Volume> Volumes { get; set; }
|
||||
public Library Library { get; set; }
|
||||
public int LibraryId { get; set; }
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace API.Entities
|
|||
|
||||
|
||||
|
||||
// Many-to-One relationships
|
||||
// Relationships
|
||||
public Series Series { get; set; }
|
||||
public int SeriesId { get; set; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue