DictEntity.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /**
  2. * 命名空间: CZFW.Category.Entity
  3. *
  4. * 功 能: N/A
  5. * 类 名: Dict
  6. *
  7. * Ver 变更日期 负责人 变更内容
  8. * ───────────────────────────────────
  9. * V0.01 2016/12/20 17:47:05 曹湘 初稿
  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")]
  26. public class DictEntity : EntityBase
  27. {
  28. /// <summary>
  29. /// 名称
  30. /// </summary>
  31. [Required(ErrorMessage = @"名称不能为空")]
  32. [Display(Name = "名称")]
  33. [StringLength(128)]
  34. [PropertyOrder(10)]
  35. public string Name { get; set; }
  36. [Display(Name = "唯一标识")]
  37. [Required]
  38. [MaxLength(128)]
  39. [PropertyOrder(9)]
  40. public string Mark { get; set; }
  41. [Display(Name = "默认数据")]
  42. [PropertyOrder(8)]
  43. public int? DefaultItemId { get; set; }
  44. /// <summary>
  45. /// 描述
  46. /// </summary>
  47. [Display(Name = @"描述")]
  48. [StringLength(256)]
  49. [DataType(DataType.MultilineText)]
  50. [PropertyOrder(7)]
  51. public string Description { get; set; }
  52. }
  53. }