mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 11:58:19 +02:00
Fix redundant keys, MangaSearch
This commit is contained in:
@@ -10,6 +10,10 @@ public class Author(string authorName)
|
||||
public string AuthorId { get; init; } = TokenGen.CreateToken(typeof(Author), 64);
|
||||
public string AuthorName { get; init; } = authorName;
|
||||
|
||||
[ForeignKey("MangaIds")]
|
||||
public virtual Manga[] Mangas { get; internal set; } = [];
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
if (obj is not Author other)
|
||||
return false;
|
||||
return other.AuthorName == AuthorName;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user