Load entry references and collections

This commit is contained in:
2025-05-18 13:53:23 +02:00
parent 698d138642
commit 4e7a725fee
5 changed files with 9 additions and 1 deletions

View File

@ -42,6 +42,8 @@ public class MoveMangaLibraryJob : Job
protected override IEnumerable<Job> RunInternal(PgsqlContext context)
{
context.Entry(Manga).Collection<Chapter>(m => m.Chapters).Load();
context.Entry(Manga).Reference<LocalLibrary>(m => m.Library).Load();
Dictionary<Chapter, string> oldPath = Manga.Chapters.ToDictionary(c => c, c => c.FullArchiveFilePath);
Manga.Library = ToLibrary;
try