Trait.cs 691 B

12345678910111213141516171819202122232425262728
  1. using System.Xml.Serialization;
  2. namespace Domain.XML_Model
  3. {
  4. [Serializable]
  5. [XmlRoot(ElementName = "traits")]
  6. public class Trait : 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 = "effet")]
  13. public string? Effet { get; set; }
  14. [XmlAttribute(AttributeName = "multiple")]
  15. public bool Multiple { get; set; }
  16. [XmlAttribute(AttributeName = "description")]
  17. public string? Description { get; set; }
  18. [XmlIgnore] public int TraitId { get; set; }
  19. }
  20. }