When we scan a library, store the last write time for a file so we can skip page calculation if there were no modifications.

This commit is contained in:
Joseph Milazzo 2021-03-23 17:28:48 -05:00
parent f77b0ec552
commit f85918b5bf
7 changed files with 803 additions and 4 deletions

View file

@ -1,5 +1,7 @@

using System;
using API.Entities.Enums;
using API.Entities.Interfaces;
namespace API.Entities
{
@ -15,10 +17,13 @@ namespace API.Entities
/// </summary>
public int Pages { get; set; }
public MangaFormat Format { get; set; }
/// <summary>
/// Last time underlying file was modified
/// </summary>
public DateTime LastModified { get; set; }
// Relationship Mapping
public Chapter Chapter { get; set; }
public int ChapterId { get; set; }
}
}