You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

8 months ago
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using System.Text.Json.Serialization;
  4. namespace Mirle.Component.Database.Model.WES
  5. {
  6. /// <summary>
  7. /// 功能基本資料類別
  8. /// </summary>
  9. [Table("CFG_FUNC")]
  10. public class CfgFuncDto : CommonDto
  11. {
  12. /// <summary>
  13. /// 功能編號
  14. /// </summary>
  15. [Column(Name = "FUNC_ID")]
  16. [Required, Key, JsonPropertyName("FUNC_ID"), JsonPropertyOrder(1)]
  17. public int FUNC_ID { get; set; }
  18. /// <summary>
  19. /// 功能名稱
  20. /// </summary>
  21. [Column(Name = "FUNC_NAME")]
  22. [Required, StringLength(50), JsonPropertyName("FUNC_NAME"), JsonPropertyOrder(2)]
  23. public string FUNC_NAME { get; set; }
  24. /// <summary>
  25. /// 功能網址
  26. /// </summary>
  27. [Column(Name = "FUNC_URL")]
  28. [Required, StringLength(64), JsonPropertyName("FUNC_URL"), JsonPropertyOrder(3)]
  29. public string FUNC_URL { get; set; }
  30. /// <summary>
  31. /// 父功能類別
  32. /// </summary>
  33. [Column(Name = "PARENT_FUNC_ID")]
  34. [Required, JsonPropertyName("PARENT_FUNC_ID"), JsonPropertyOrder(4)]
  35. public int PARENT_FUNC_ID { get; set; }
  36. }
  37. }