From 509df1f2ff95aac3f14623a513aa837958a4f76e Mon Sep 17 00:00:00 2001 From: "josephine.vetu" Date: Wed, 4 Mar 2026 11:00:47 +0100 Subject: [PATCH] =?UTF-8?q?#3=20Cr=C3=A9ation=20de=20l'entit=C3=A9=20style?= =?UTF-8?q?=20correspondant=20aux=20tests=20unitaires=20StyleTests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Webzine.Entity/Style.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Webzine.Entity/Style.cs diff --git a/Webzine.Entity/Style.cs b/Webzine.Entity/Style.cs new file mode 100644 index 0000000..11c6f32 --- /dev/null +++ b/Webzine.Entity/Style.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Text; + +namespace Webzine.Entity +{ + /// + /// Classe représentant un style de musique. + /// + public class Style + { + public int IdStyle { get; set; } + + [Required] + [MinLength(2)] + [MaxLength(50)] + [Display(Name = "Libellé")] + public string Libelle { get; set; } + + } +}