RegionCreateDto.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using Abp.AutoMapper;
  3. using System.ComponentModel.DataAnnotations;
  4. using Abp.Application.Services.Dto;
  5. using ShwasherSys.BasicInfo;
  6. namespace ShwasherSys.BasicInfo.Region.Dto
  7. {
  8. [AutoMapTo(typeof(Regions))]
  9. public class RegionCreateDto:EntityDto<string>
  10. {
  11. [Required]
  12. [StringLength(Regions.RegionNameMaxLength)]
  13. public string RegionName { get; set; }
  14. [Required]
  15. [StringLength(Regions.FatherRegionIDMaxLength)]
  16. public string FatherRegionID { get; set; }
  17. [StringLength(Regions.URLMaxLength)]
  18. public string URL { get; set; }
  19. public int Depth { get; set; }
  20. [StringLength(Regions.IsLeafMaxLength)]
  21. public string IsLeaf { get; set; }
  22. public int Sort { get; set; }
  23. [StringLength(Regions.PathMaxLength)]
  24. public string Path { get; set; }
  25. public DateTime? TimeCreated { get; set; }
  26. public DateTime? TimeLastMod { get; set; }
  27. [StringLength(Regions.UserIDLastModMaxLength)]
  28. public string UserIDLastMod { get; set; }
  29. [StringLength(Regions.IsLockMaxLength)]
  30. public string IsLock { get; set; }
  31. }
  32. }