1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- /**
- * 命名空间: CZFW.Category.Entity
- *
- * 功 能: N/A
- * 类 名: Dict
- *
- * Ver 变更日期 负责人 变更内容
- * ───────────────────────────────────
- * V0.01 2016/12/20 17:47:05 曹湘 初稿
- *
- * Copyright (c) 2016 CHUANGZHIKEJI Corporation. All rights reserved.
- *┌──────────────────────────────────┐
- *│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
- *│ 版权所有:创执科技(北京)有限公司 │
- *└──────────────────────────────────┘
- */
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using CZFW.Framework.Attributes;
- namespace CZFW.Framework.Model.Entity
- {
- /// <summary>
- /// 字典
- /// </summary>
- [Table("cz_dict")]
- public class DictEntity : EntityBase
- {
- /// <summary>
- /// 名称
- /// </summary>
- [Required(ErrorMessage = @"名称不能为空")]
- [Display(Name = "名称")]
- [StringLength(128)]
- [PropertyOrder(10)]
- public string Name { get; set; }
- [Display(Name = "唯一标识")]
- [Required]
- [MaxLength(128)]
- [PropertyOrder(9)]
- public string Mark { get; set; }
- [Display(Name = "默认数据")]
- [PropertyOrder(8)]
- public int? DefaultItemId { get; set; }
- /// <summary>
- /// 描述
- /// </summary>
- [Display(Name = @"描述")]
- [StringLength(256)]
- [DataType(DataType.MultilineText)]
- [PropertyOrder(7)]
- public string Description { get; set; }
- }
- }
|