From cc8ca35539b5ef8477b7a065bdfc3bc0a74dcfda Mon Sep 17 00:00:00 2001 From: "josephine.vetu" Date: Wed, 4 Mar 2026 10:59:20 +0100 Subject: [PATCH] =?UTF-8?q?#2=20Cr=C3=A9ation=20de=20l'entit=C3=A9=20artis?= =?UTF-8?q?te=20correspondant=20aux=20tests=20unitaires=20ArtisteTests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Webzine.Entity/Artiste.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Webzine.Entity/Artiste.cs diff --git a/Webzine.Entity/Artiste.cs b/Webzine.Entity/Artiste.cs new file mode 100644 index 0000000..257fe56 --- /dev/null +++ b/Webzine.Entity/Artiste.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Text; +using System.Timers; + +namespace Webzine.Entity +{ + /// + /// Classe représentant un artiste. + /// Lien avec l'entité : un artiste peut avoir plusieurs titres, mais un titre n'a qu'un seul artiste. + /// + public class Artiste + { + public int IdArtiste { get; set; } + + [Required] + [MinLength(2)] + [MaxLength(50)] + [Display(Name = "Nom de l'artiste")] + public string Nom { get; set; } + + public string Biographie { get; set; } + + public List Titres { get; set; } + } +}