TypeMonde.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System.Xml.Serialization;
  2. namespace Domain.XML_Model
  3. {
  4. [Serializable]
  5. [XmlRoot(ElementName = "type_mondes")]
  6. public class TypeMonde : BaseEntity
  7. {
  8. [XmlAttribute(AttributeName = "id")]
  9. public string Id { get; set; }
  10. [XmlAttribute(AttributeName = "nom")]
  11. public string? Nom { get; set; }
  12. [XmlAttribute(AttributeName = "texte_section")]
  13. public string? TexteSection { get; set; }
  14. [XmlAttribute(AttributeName = "age")]
  15. public string? Age { get; set; }
  16. [XmlAttribute(AttributeName = "cheveux")]
  17. public string? Cheveux { get; set; }
  18. [XmlAttribute(AttributeName = "corpulence")]
  19. public string? Corpulence { get; set; }
  20. [XmlAttribute(AttributeName = "particularités_physiques")]
  21. public string? ParticularitésPhysiques { get; set; }
  22. [XmlAttribute(AttributeName = "peau")]
  23. public string? Peau { get; set; }
  24. [XmlAttribute(AttributeName = "yeux")]
  25. public string? Yeux { get; set; }
  26. [XmlAttribute(AttributeName = "description")]
  27. public string? Description { get; set; }
  28. [XmlIgnoreAttribute] public int TypeMondeId { get; set; }
  29. }
  30. }