Coordonnée.cs 908 B

12345678910111213141516171819202122232425262728293031323334
  1. using System.Xml.Serialization;
  2. namespace Domain.XML_Model
  3. {
  4. [Serializable]
  5. [XmlRoot(ElementName = "coordonnées")]
  6. public class Coordonnée : 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 = "sous_secteur")]
  13. public string? SousSecteur { get; set; }
  14. [XmlAttribute(AttributeName = "type")]
  15. public string? Type { get; set; }
  16. [XmlAttribute(AttributeName = "coord_x")]
  17. public int CoordX { get; set; }
  18. [XmlAttribute(AttributeName = "coord_y")]
  19. public int CoordY { get; set; }
  20. [XmlAttribute(AttributeName = "description")]
  21. public string? Description { get; set; }
  22. [XmlIgnoreAttribute] public int CoordonnéeId { get; set; }
  23. }
  24. }