123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- using CZFW.Framework.Attributes;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- namespace CZFW.Framework.Model.Entity
- {
- /// <summary>
- /// 导航
- /// </summary>
- [Table("cz_navigation")]
- public class NavigationEntity : EntityBase
- {
- [MaxLength(1024)]
- [Required]
- [Invisible]
- [Display(Name = "标识")]
- [PropertyOrder(11)]
- public string Mark { get; set; }
- [Required]
- [Invisible]
- public string ParentMark { get; set; }
- /// <summary>
- /// 图标
- /// </summary>
- [Display(Name = @"图标", Description = "图标")]
- [MaxLength(512)]
- [PropertyOrder(12)]
- public string Icon { get; set; }
- /// <summary>
- /// 缩略图
- /// </summary>
- [Display(Name = @"缩略图", Description = "缩略图")]
- [MaxLength(512)]
- [DataType(DataType.ImageUrl)]
- [PropertyOrder(13)]
- public string Thumbnail { get; set; }
- /// <summary>
- /// Url
- /// </summary>
- [PropertyOrder(14)]
- [Display(Name = @"链接", Description = "要跳转到的链接")]
- [MaxLength(512)]
- public string Url { get; set; }
- [PropertyOrder(99)]
- [MaxLength(128)]
- [Required(ErrorMessage = "名称必须填写")]
- [Display(Name = "名称")]
- public string Name { get; set; }
- [PropertyOrder(11)]
- [MaxLength(4096)]
- [Display(Name = "描述", Description = "描述")]
- [DataType(DataType.MultilineText)]
- public string Description { get; set; }
- }
- }
|