DictItemEntity.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /**
  2. * 命名空间: CZFW.Category.Entity
  3. *
  4. * 功 能: N/A
  5. * 类 名: DictItem
  6. *
  7. * Ver 变更日期 负责人 变更内容
  8. * ───────────────────────────────────
  9. * V0.01 2016/12/20 0:23:29 曹湘 初稿
  10. *
  11. * Copyright (c) 2016 CHUANGZHIKEJI Corporation. All rights reserved.
  12. *┌──────────────────────────────────┐
  13. *│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
  14. *│ 版权所有:创执科技(北京)有限公司                │
  15. *└──────────────────────────────────┘
  16. */
  17. using System.ComponentModel.DataAnnotations;
  18. using System.ComponentModel.DataAnnotations.Schema;
  19. using CZFW.Framework.Attributes;
  20. namespace CZFW.Framework.Model.Entity
  21. {
  22. /// <summary>
  23. /// 字典项
  24. /// </summary>
  25. [Table("cz_dict_item")]
  26. public class DictItemEntity : EntityBase
  27. {
  28. [Invisible]
  29. public int DictId { get; set; }
  30. [Invisible]
  31. [MaxLength(128)]
  32. public string DictMark { get; set; }
  33. /// <summary>
  34. /// 名称
  35. /// </summary>
  36. [Required(ErrorMessage = @"不能为空")]
  37. [Display(Name = "名称")]
  38. [StringLength(128)]
  39. public string Name { get; set; }
  40. /// <summary>
  41. /// 值
  42. /// </summary>
  43. [Display(Name = "值")]
  44. [StringLength(128)]
  45. [Invisible]
  46. public string Value { get; set; }
  47. /// <summary>
  48. /// 描述
  49. /// </summary>
  50. [Display(Name = @"描述")]
  51. [StringLength(256)]
  52. public string Description { get; set; }
  53. }
  54. }