移动系统liao
2025-05-01 a247547df86f0fad8f03aebb91de68d3f2bc7918
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
82
83
84
85
86
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace cylsg.Core
{
    /// <summary>
    /// 最基础的模型,创建时间创建人记录
    /// </summary>
    public class BaseModelBase
    {
        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间 ")]
        [SugarColumn(ColumnDescription = "创建时间 " , IsNullable = true)]
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [Display(Name = "创建人 ")]
        [SugarColumn(ColumnDescription = "创建人 ", ColumnDataType = "nvarchar(100)", IsNullable = true)]
        public string CreateBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [Display(Name = "修改时间 ")]
        [SugarColumn(ColumnDescription = "修改时间 ", IsNullable = true)]
        public DateTime? UpDataTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        [Display(Name = "修改人 ")]
        [SugarColumn(ColumnDescription = "修改人 ", ColumnDataType = "nvarchar(100)", IsNullable = true)]
        public string UpDataBy { get; set; }
 
 
 
    }
    /// <summary>
    /// 修正基础模型,包括了删除标志,生效标志,排序,和使能
    /// </summary>
    public class BaseModel : BaseModelBase
    {
 
 
        /// <summary>
        /// 是否删除
        /// </summary>
        [Display(Name = "是否删除 ")]
        [SugarColumn(ColumnDescription = "是否删除 ", DefaultValue = "0")]
        public bool IsDeleted { get; set; } = false;
 
        /// <summary>
        /// 是否有效
        /// </summary>
        [Display(Name = "是否有效 ")]
        [SugarColumn(ColumnDescription = "是否有效 ", DefaultValue = "1")]
        public bool IsEn { get; set; } = true;
 
        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name = "排序 ")]
        [SugarColumn(ColumnDescription = "排序 ", IsNullable = true)]
        public int? Sort { get; set; }
 
        /// <summary>
        /// 标注
        /// </summary>
        [Display(Name = "标注 ")]
        [SugarColumn(ColumnDescription = "标注 ", IsNullable = true)]
        public string Remake { get; set; }
 
        /// <summary>
        /// 租户
        /// </summary>
        [Display(Name = "租户 ")]
        [SugarColumn(ColumnDescription = "租户 扩展 ", IsNullable = true)]
        public int? TenantID { get; set; }
    }
}