Types return only Ids of related Entities

This commit is contained in:
2025-03-08 12:54:07 +01:00
parent 4cb48dd1b4
commit 6909c367e5
8 changed files with 30 additions and 30 deletions

View File

@ -2,6 +2,7 @@
using System.Xml.Linq;
using API.Schema.Jobs;
using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
namespace API.Schema;
@ -38,6 +39,7 @@ public class Chapter : IComparable<Chapter>
public bool Downloaded { get; internal set; } = false;
public string ParentMangaId { get; internal set; }
[JsonIgnore]
public Manga? ParentManga { get; init; }
public int CompareTo(Chapter? other)