Advertisement
Silviya7

District

Aug 26th, 2024
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1.  [XmlType("District")]
  2.     public class ImportDistrictDto
  3.     {
  4.  
  5.         [Required]
  6.         [XmlAttribute("Region")]
  7.         public string Region { get; set; }
  8.  
  9.         [Required]
  10.         [MinLength(2)]
  11.         [MaxLength(80)]
  12.         [XmlElement("Name")]
  13.         public string Name { get; set; }
  14.  
  15.         [Required]
  16.         [MaxLength(8)]
  17.         [RegularExpression(@"^[A-Z]{2}\-[0-9]{5}")]
  18.         [XmlElement("PostalCode")]
  19.         public string PostalCode { get; set; }
  20.  
  21.  
  22.         [XmlArray]
  23.         public ImportPropertyDto[]  Properties { get; set; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement