#3 Création de l'entité style correspondant aux tests unitaires StyleTests
This commit is contained in:
22
Webzine.Entity/Style.cs
Normal file
22
Webzine.Entity/Style.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace Webzine.Entity
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Classe représentant un style de musique.
|
||||||
|
/// </summary>
|
||||||
|
public class Style
|
||||||
|
{
|
||||||
|
public int IdStyle { get; set; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[MinLength(2)]
|
||||||
|
[MaxLength(50)]
|
||||||
|
[Display(Name = "Libellé")]
|
||||||
|
public string Libelle { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user