mirror of
https://github.com/C9Glax/tranga.git
synced 2025-05-22 06:03:01 +02:00
Fix missing Entity-Relation for UpdateFilesDownloadedJob
This commit is contained in:
parent
53d9be5656
commit
2d69b30e83
@ -87,6 +87,15 @@ public class PgsqlContext(DbContextOptions<PgsqlContext> options) : DbContext(op
|
|||||||
modelBuilder.Entity<RetrieveChaptersJob>()
|
modelBuilder.Entity<RetrieveChaptersJob>()
|
||||||
.Navigation(j => j.Manga)
|
.Navigation(j => j.Manga)
|
||||||
.AutoInclude();
|
.AutoInclude();
|
||||||
|
modelBuilder.Entity<UpdateFilesDownloadedJob>()
|
||||||
|
.HasOne<Manga>(j => j.Manga)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey(j => j.MangaId)
|
||||||
|
.IsRequired()
|
||||||
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
|
modelBuilder.Entity<UpdateFilesDownloadedJob>()
|
||||||
|
.Navigation(j => j.Manga)
|
||||||
|
.AutoInclude();
|
||||||
|
|
||||||
//Job has possible ParentJob
|
//Job has possible ParentJob
|
||||||
modelBuilder.Entity<Job>()
|
modelBuilder.Entity<Job>()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user