Add Queries for MangaConnectorIds

This commit is contained in:
2025-07-22 15:56:57 +02:00
parent 17995d1603
commit 5d8f203a35
5 changed files with 71 additions and 34 deletions

View File

@@ -39,6 +39,7 @@ public class Manga : Identifiable
[NotMapped] public Dictionary<string, string> IdsOnMangaConnectors =>
MangaConnectorIds.ToDictionary(id => id.MangaConnectorName, id => id.IdOnConnectorSite);
[NotMapped] public ICollection<string> MangaConnectorIdsIds => MangaConnectorIds.Select(id => id.Key).ToList();
[JsonIgnore] public ICollection<MangaConnectorId<Manga>> MangaConnectorIds = null!;
public Manga(string name, string description, string coverUrl, MangaReleaseStatus releaseStatus,