using CZFW.Framework.Attributes; using CZFW.Framework.Model.Entity; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace CZKJ.GBRS2.Entity { /// /// 公开类型 /// [Table("cz_gbrs2_publictype")] public class PublicTypeEntity : EntityBase { /// /// 类型名称 /// [Display(Name = "名称")] [StringLength(36)] [Required] public string Name { get; set; } /// /// 父级Id /// [Display(Name = "父级类型")] [Invisible(FormVisible = true, AddVisible = true)] [DropdownSrc(SrcUrl = "/Manage/PublicType/GetAllList")] public int ParentId { get; set; } /// /// 描述 /// [Display(Name = "描述")] [StringLength(512)] public string Description { get; set; } /// /// 父级名称 /// [NotMapped] [Display(Name = "父级类型")] [Invisible(TableVisible =true)] public string ParentName { get; set; } //[NotMapped] //[Invisible] //public IList Children { get; set; } } }