using CZFW.Framework.Attributes; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace CZFW.Framework.Model.Entity { /// /// 导航 /// [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; } /// /// 图标 /// [Display(Name = @"图标", Description = "图标")] [MaxLength(512)] [PropertyOrder(12)] public string Icon { get; set; } /// /// 缩略图 /// [Display(Name = @"缩略图", Description = "缩略图")] [MaxLength(512)] [DataType(DataType.ImageUrl)] [PropertyOrder(13)] public string Thumbnail { get; set; } /// /// Url /// [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; } } }