1
hutongqing
2024-09-24 a89c018c3afa43a529f9eb54725bc92ed2b996e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using Magicodes.ExporterAndImporter.Core;
using SqlSugar;
using WIDESEA_Core.DB.Models;
using WIDESEA_Core.Filter;
using WIDESEA_Core.Tenants;
 
namespace WIDESEA_Model.Models
{
    [MultiTenant]
    [Exporter(ExporterHeaderFilter = typeof(ExporterHeaderFilter))]
    [SugarTable("Sys_Dictionary", "字典数据")]
    public class Sys_Dictionary : BaseEntity
    {
        /// <summary>
        /// 字典ID
        /// </summary>
        [ExporterHeader(DisplayName = "字典ID")]
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true, ColumnDescription = "字典ID")]
        public int DicId { get; set; }
 
        /// <summary>
        /// 配置项
        /// </summary>
        [ExporterHeader(DisplayName = "配置项")]
        [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "配置项")]
        public string Config { get; set; }
 
        /// <summary>
        /// Sql语句
        /// </summary>
        [ExporterHeader(DisplayName = "Sql语句")]
        [SugarColumn(IsNullable = true, Length = 500, ColumnDescription = "Sql语句")]
        public string Sql { get; set; }
 
        /// <summary>
        /// 字典名称
        /// </summary>
        [ExporterHeader(DisplayName = "字典名称")]
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "字典名称")]
        public string DicName { get; set; }
 
        /// <summary>
        /// 字典编号
        /// </summary>
        [ExporterHeader(DisplayName = "字典编号")]
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "字典编号")]
        public string DicNo { get; set; }
 
        /// <summary>
        /// 是否启用
        /// </summary>
        [ExporterHeader(DisplayName = "是否启用")]
        [SugarColumn(IsNullable = true, ColumnDescription = "是否启用")]
        public byte? Enable { get; set; }
 
        /// <summary>
        /// 排序号
        /// </summary>
        [ExporterHeader(DisplayName = "排序号")]
        [SugarColumn(IsNullable = true, ColumnDescription = "排序号")]
        public int? OrderNo { get; set; }
 
        /// <summary>
        /// 父级ID
        /// </summary>
        [ExporterHeader(DisplayName = "父级ID")]
        [SugarColumn(IsNullable = true, ColumnDescription = "父级ID")]
        public int ParentId { get; set; }
 
        /// <summary>
        /// 备注
        /// </summary>
        [ExporterHeader(DisplayName = "备注")]
        [SugarColumn(IsNullable = true, Length = 2000, ColumnDescription = "备注")]
        public string Remark { get; set; }
 
        [ExporterHeader(IsIgnore = true)]
        [Navigate(NavigateType.OneToMany, nameof(DicId),nameof(DicId)), SugarColumn(IsIgnore = true, IsNullable = true)]
        public List<Sys_DictionaryList> DicList { get; set; }
    }
}