Amélioration.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System.Xml.Serialization;
  2. namespace Domain.XML_Model
  3. {
  4. [Serializable]
  5. [XmlRoot(ElementName = "améliorations")]
  6. public class Amélioration : BaseEntity
  7. {
  8. [XmlAttribute(AttributeName = "id")]
  9. public string Id { get; set; }
  10. [XmlAttribute(AttributeName = "catégorie")]
  11. public string? Catégorie { get; set; }
  12. [XmlAttribute(AttributeName = "souscatégorie")]
  13. public string? Souscatégorie { get; set; }
  14. [XmlAttribute(AttributeName = "promotion")]
  15. public int Promotion { get; set; }
  16. [XmlAttribute(AttributeName = "type")]
  17. public string? Type { get; set; }
  18. [XmlAttribute(AttributeName = "nom")]
  19. public string? Nom { get; set; }
  20. [XmlAttribute(AttributeName = "cout")]
  21. public string Cout { get; set; }
  22. [XmlAttribute(AttributeName = "nb_max_ou_rang")]
  23. public int NbMaxOuRang { get; set; }
  24. [XmlAttribute(AttributeName = "condition")]
  25. public string? Condition { get; set; }
  26. [XmlIgnore] public int AméliorationId { get; set; }
  27. }
  28. }