Converts Tags and Genres as HashSets, to enforce non-duplicate values

This commit is contained in:
BinaryAlley committed 2024-08-28 21:48:20 +03:00
1 parent e10ca26ae4
commit 182c8aadb5
3 files changed
+30 -31

No files matched your search

@@ -25,8 +25,8 @@ public class BookDto : IStorageEntity
public string? OriginalLanguageCode { get; init; }
public string? OriginalLanguageName { get; init; }
public string? OriginalLanguageNativeName { get; init; }
public List<TagDto> Tags { get; init; } = [];
public List<GenreDto> Genres { get; init; } = [];
public HashSet<TagDto> Tags { get; set; } = [];
public HashSet<GenreDto> Genres { get; set; } = [];
public string? Publisher { get; init; }
public int? PageCount { get; init; }
public string Format { get; init; } = null!;