#2 Création de l'entité artiste correspondant aux tests unitaires ArtisteTests
This commit is contained in:
27
Webzine.Entity/Artiste.cs
Normal file
27
Webzine.Entity/Artiste.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user