#2 Création de l'entité artiste correspondant aux tests unitaires ArtisteTests

This commit is contained in:
josephine.vetu
2026-03-04 10:59:20 +01:00
parent cb5fff33e7
commit cc8ca35539

27
Webzine.Entity/Artiste.cs Normal file
View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using System.Timers;
namespace Webzine.Entity
{
/// <summary>
/// Classe représentant un artiste.
/// Lien avec l'entité <see cref="Titre"/> : un artiste peut avoir plusieurs titres, mais un titre n'a qu'un seul artiste.
/// </summary>
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<Titre> Titres { get; set; }
}
}