using MaBibli.Shared.Textes; namespace MaBibli.Shared.Entites; /// Étiquette thématique commune au catalogue. public class Theme { public int Id { get; set; } public string Nom { get; set; } = string.Empty; public string NomNormalise { get; set; } = string.Empty; public List Livres { get; set; } = []; public void RecalculerFormes() { Nom = Nom.Trim(); NomNormalise = NormalisationTexte.Normaliser(Nom); } } /// Lien entre un livre et une étiquette thématique. public class LivreTheme { public int LivreId { get; set; } public Livre? Livre { get; set; } public int ThemeId { get; set; } public Theme? Theme { get; set; } }