MaBibli 1.0.0

Gestion de bibliothèque personnelle auto-hébergée : catalogue, prêts,
scan de code-barres, consultation hors-ligne.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Mathieu Limonier
2026-08-22 22:36:16 +02:00
co-authored by Claude Opus 5
commit 6a6d745af4
207 changed files with 35543 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
using MaBibli.Shared.Textes;
namespace MaBibli.Shared.Entites;
/// <summary>Étiquette thématique commune au catalogue.</summary>
public class Theme
{
public int Id { get; set; }
public string Nom { get; set; } = string.Empty;
public string NomNormalise { get; set; } = string.Empty;
public List<LivreTheme> Livres { get; set; } = [];
public void RecalculerFormes()
{
Nom = Nom.Trim();
NomNormalise = NormalisationTexte.Normaliser(Nom);
}
}
/// <summary>Lien entre un livre et une étiquette thématique.</summary>
public class LivreTheme
{
public int LivreId { get; set; }
public Livre? Livre { get; set; }
public int ThemeId { get; set; }
public Theme? Theme { get; set; }
}